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.
Related
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.
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.
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.
I have just added 64 bit support for my iPad app in Xcode. Before the update i was able to archive the app with no red errors. After i add arm64 in the build settings get 2 error preventing the archive:
*ld: warning: ignoring file /Users/****/Documents/mApp/****/Pixate.framework/Pixate, missing required architecture arm64 in file /Users/****/Documents/mApp/****/Pixate.framework/Pixate (3 slices)
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_Pixate", referenced from:
objc-class-ref in main.o
objc-class-ref in BaseView.o
objc-class-ref in BaseViewController.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)*
I have checked the framework and it is showing in the frameworks in the project.
I am currently using Xcode version 6.3.2 (6D2105)
The problem is related to third party framework Pixate.framework.
This framework is not built for arm64. That's why you got these errors.
How to fix it: find the version of this framework that was built with arm64 or just build it yourself by getting code from GitHub
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