Why this error occurs in xcode for ionic4 - ios

I am trying to build the Ionic app in IOS. But when I start to build in XCODE, it gives me error like below.
Undefined symbols for architecture arm64:
"OBJC_CLASS$_GSDK_GTMLogger", referenced from:
objc-class-ref in GoogleIPhoneUtilities(GIPReachability.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation).
I had searched for a day but all in vain. Anyone here with a solution for this? Thanks in Advance.

Your ionic app not supporting the architecture of XCode, please try these steps to again build you app for ios.
ionic build --prod
sudo npm install -g ionic cordova
ionic integrations enable cordova --add
ionic cordova prepare ios

Related

React Native FBSDK IOS build is failing

Undefined symbols for architecture x86_64:
"___darwin_check_fd_set_overflow", referenced from:
_RAND_poll in libcrypto.a(rand_unix.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
React Native version: 0.63
Xcode version: 11.3.1
react-native-fbsdk: 2.0.0
1° Solution (Recommended):
I also have this problem, it seems to occur in the Xcode 11.3.1 version. One way to fix is updating the version to 11.6.
2° Solution:
Comment all flipper function in podfile
Remove the function InitializeFlipper and Imports from appDelegate:
Run pod install:
Clean project;
Try again: react-native run-ios

Undefined symbols for architecture armv7: "query_call_back(callback_func_type)"

I've a problem to build iOS project after recently upgraded my project from Unity 5.6.4 to 2018.4.19f1. Everything is ok to export, build and run on my device, but if I archive the exported project, then the error occurs:
Undefined symbols for architecture armv7:
"query_call_back(callback_func_type)", referenced from:
il2cpp::vm::MetadataCache::Initialize() in
libil2cpp.a(External_il2cpp_il2cpp_libil2cpp_vm_6.o)
il2cpp::vm::MetadataCache::Initialize() in
libil2cpp.a(External_il2cpp_il2cpp_libil2cpp_vm_6.o) ld: symbol(s) not
found for architecture armv7 clang: error: linker command failed with
exit code 1 (use -v to see invocation)
Environments:
Unity 2018.4.19f1
Xcode 10.1 (10B61)
Appreciate if anyone can help!
Solution:
After hours of upgrade unity again to 2019.3.4f1 and fix mirror error.
Finally, Xcode archive the project successful!
This looks like a bug, try to upgrade Unity to the latest stable version.

ld: symbol(s) not found for architecture x86_64 (realm)

I'm using realm in my react-native project: https://github.com/kdnakt/pixelarn
After running ncu -u on my Mac to update react-native-elements to 1.0.0 and realm to 2.23.0, react-native run-ios would not start my app and I'm getting the following error:
realm::jsc::ObjectWrap<realm::js::CollectionClass<realm::jsc::Types> >::create_class() in libRealmReact.a(jsc_init.o)
...
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
** BUILD FAILED **
I saw some Github issues and tried rm -rf ~/Library/Developer/Xcode/DerivedData/ and rm -rf ios/build/ in my project directory, but still failing ... how can I start my react native app with react-native run-ios?
There was some modifications after upgrade to react native 0.58.5 and above versions.
Xcode Archive build failed with react native project
Try to manually link the JavaScriptCore.framework in "Link Binary With Libraries". I had the same problem and it work for me.
Image

Integrating AppRTC to Ionic - iOS linker error

I am integrating AppRTC to my hybrid app (ionic 3 and angular 4)...
iOS AppRTC Integration: https://github.com/ISBX/apprtc-ios
I've successfully installed the pod and build the project without errors but when I add
[RTCPeerConnectionFactory initializeSSL];
to my
application:didFinishLaunchingWithOptions:
When I build the project I get the following errors:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_RTCPeerConnectionFactory", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
Already searched the net but couldn't find a solution...
Added " ${inherited} $(OTHER_LDFLAGS) -ObjC -all_load" to the linker library, restart and clean xcode, deleted the DerivedData file but the issue still persist.
Not sure if this will help as you have installed from a pod but we got the same error when the framework search path was wrong. $(inherited) pathToWebrtcFramework. With this option we had built the webrtc framework ourselves using the instructions at https://webrtc.org/native-code/ios/.
Also set build active architecture only to yes.

failing to embed 'GoogleAppIndexing' pod to IOS app

Im having hard time to build the project after adding GoogleAppIndexing (deep linking) pod to my project. Google's Install Instructions
Im a newbie in IOS , in fact i know very little about objC, My app is written in react native.
Im getting these exception on build.
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_GSDAppIndexing", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
as i understand the message pod/lib is not compatible with 64bit environments , doesn't make any sense .
im using xcode 6.4 .
Thanks
GoogleAppIndexing Lib is IOS 9 and above.

Resources