Integrating AppRTC to Ionic - iOS linker error - ios

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.

Related

iOS Unity Firebase Messenger Xcode Compile Error: FIRDynamicLinks

Building with Unity 2018.4.2 - Xcode 10.2 - Latest iOS Targets
Firebase Latest (6.1.1) for Unity with .Net 4
For Firebase We are using the following unity packages:
- FirebaseMessaging.unitypackage
- FirebaseAnalytics.unitypackage
Get the following Build Error in Xcode:
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_FIRDynamicLinks", referenced from:
objc-class-ref in libFirebaseCppApp.a(invites_receiver_internal_ios_aa7b75b2efc3269e88f1077e55250e5a.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
On another Machine same error however armv7 target:
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_FIRDynamicLinks", referenced from:
objc-class-ref in libFirebaseCppApp.a(invites_receiver_internal_ios_aa7b75b2efc3269e88f1077e55250e5a.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Tested Solutions (no solution yet):
Obj-C to frameworks (was already there)
Updated Cocoa Pods to Latest
Deleted Developer/Xcode/DerivedData
Updated Cocoa Pods and deleted caches
The strangest thing is this only started happening on Monday, previously was working, nothing else was changed, so this leads to believe this is Google changed something in their Cocoa pods library which is linking agains't another package which is not included now.
Problem does not occur in the same Android Variant of the Project.
Solution:
It now requires you to also include and install Firebase: DynamicLinks in order to compile for iOS.
FirebaseDynamicLinks.unitypackage
So install the following package into your unity project from the download of Firebase Unity.

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.

Linker error when building Login Demo

I'm getting this error when I try to build the iOS Login Demo from https://github.com/firebase/login-demo-ios:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_Firebase", referenced from:
objc-class-ref in ViewController.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have updated the project Podfile to use Firebase 2.4.1 and updated the target to iOS 8.4 and am using XCode 7.0.1. How do I fix this?
I created an issue on Github per #Frank van Puffelen's recommendation, and got this response (https://github.com/firebase/login-demo-ios/issues/15):
This is due to a broken release for Firebase on CocoaPods. We're working on a fix for that. As a workaround until we release that you can point to 2.3.3 in the Podfile.
I imagine this would break any project pulling Firebase 2.4 from CocoaPods.

google admob undefined symbol for architecture armv7

i have replaced older version of admob 6.6.1 with latest admob library version 6.12.0 but i get this error although every thing is fine. I am using xcode 6.0.1, how to resolve this issue, any help?
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_EKEvent", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
"_OBJC_CLASS_$_EKEventEditViewController", referenced from:
objc-class-ref in libGoogleAdMobAds.a(GADOpener.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I had same issue but i solved by adding eventKit and eventUIKit framework into my project. Hope it will work for you too.
This error is mostly because update of your ADMOB SDK.
1) Go to build phases->Open list of frameworks.
2) Locate libGoogleAdMobAds.a. Remove this file by pressing - sign.
3) Again add this libGoogleAdMobAds.a file back by pressing + sign and selecting "Add other". select this file from ADMOB folder of your project.
4) Clean, then build and run your project.
Also, check you have -ObjC set to Other Linker Flags in your project's target build settings and required frameworks are added.
add Framework EventKit and EventKitUI.

building TestFlightSDK with cocoapods

I seem to be getting the error message while trying to compile TestFlightSDK in my app via cocoapods
Im my Podfile i have the line:
pod 'TestFlightSDK'
And the pod update works fine.
When i try and compile the app i get the message:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_TestFlight", referenced from:
objc-class-ref in OurDealAppDelegate_iPhone.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
my app is only supporting Architecture armv7 (because if i add armv7s or arm64 older libraries fail to compile - so i assume its something to do with this.
Is there any work around for this?
Okay, you need to confirm whether Cocoapods has included libTestFlight.a library in your project. Cocoapods has never added the library for me.
So, please follow the steps below:
Open the Pods-TestFlightSDK target in the Pods.xcodeproj project
Open Build Phases tab and add libTestFlight.a
libTestFlight.a can be found at [$SRCROOT]/Pods/TestFlightsSDK

Resources