Linker error when building Login Demo - ios

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.

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.

Getting frameworks(GoogleMobileVision/FirebaseMLCommon) issue when integrate firebase SDK without using Cocoa pods

Getting below error when adding firebase SDK in app:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_LAContext", referenced from:
objc-class-ref in FirebaseMLCommon(MDMPasscodeCache_ac345e06741a76a3aefe61adde149175.o)
objc-class-ref in GoogleMobileVision
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Xcode version: 10.1
Firebase SDK version: 5.20.2
Firebase Component: ML Kit (text recognition)
Component version:
Any help is appreciated. Thanks
Similar answer as https://stackoverflow.com/a/55750927/556617 - Add LocalAuthentication.framework instead of libc++ to the Link Binary with Libraries Build Phase.
Why don't u install CocoaPods?
pod setup
as a sequence,
pod repo update
RefURL: https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/INSTALLATION.md#cocoapods

Google Consent SDK - Linker Error

I'm currently trying to integrate the Google Consent SDK, but as soon as I call
[PACConsentInformation.sharedInstance requestConsentInfoUpdateForPublisherIdentifiers:#[ #"pub-0123456789012345"]
I get the following error in Xcode console:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_PACConsentInformation", 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)
I've been searching Stackoverflow for a couple of hours now and I've tried various things such as Enabling Bitcode, Updating Linker Flags with $(inherited), as well as a few other things like adding suggested frameworks and libz found in popular questions/answers here, but still no luck.
I've gone as far to try my project in Xcode 8.3.2, Xcode 9.0 and Xcode 9.2, all of which show this error.
Is there anything I'm missing?
I'm completely stuck for ideas now.
Thanks for you help.
Go to Build Phase -> Link Binary With Libraries then add PersonalizedAdConsent framework

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.

iOS Paypal SDK Integration Compilation issues

I'm trying to get Paypal's iOS SDK working. I have followed the instructions in the readme but the build fails with the error below
Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_NSExtensionItem", referenced from:
objc-class-ref in libPayPalMobile.a(OnePasswordExtension.o)
"_OBJC_CLASS_$_NSItemProvider", referenced from:
objc-class-ref in libPayPalMobile.a(OnePasswordExtension.o)
"_kUTTypePropertyList", referenced from:
-[OnePasswordExtension processExtensionItem:completion:] in libPayPalMobile.a(OnePasswordExtension.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
This same error occurs when building the sample application, so I have ruled out my project settings.
Can anybody tell me what I've missed?
add the path of the library in the "Library Search Path"
$(PROJECT_DIR)/XXXX/MyFramework/GoogleAdWords
EDIT : Maybe the sample is wrong ...
This was down to the new version of the Paypal API requiring Xcode 6, while I was attempting to compile on Xcode 5.

Resources