Google Consent SDK - Linker Error - ios

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

Related

ios – Xcode Errors Undefined symbols for architecture armv7 -MIsnap

We have an iOS app which uses MISNAP SDK version (2.3) as part of scanning functionality and it was working fine. Since the recent update came for MiSnap which is of version 3.0 and we wanted to update the library in our said application. We followed the docs and we replaced the necessary libraries and we are stuck with below errors even after multiple tries of resolving it.
"_OBJC_CLASS_$_MiSnapViewController", referenced from: objc-class-ref
in DCVC.o objc-class-ref in CCVC.o ld:
symbol(s) not found for architecture armv7
clang: error: linker
command failed with exit code 1 (use -v to see invocation)
We dug up in internet searching solution for this issue and came along with this post but we did not find any solution for the above error. We also created a sample project with the new version of the SDK and it works well. We doubt that this might be some configuration issue which we are unable to figure even after multiple tries.
Below is the current configuration for our application
Deployment Target - 7.1 and above
Base SDK - latest(9.0)
Build Active architecture only - Yes
Valid architectures - armv7 armv7s arm64

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.

Facebook SDK is not a dylib

I am attempting to build a project I did not write, and I keep reaching this error:
ld: warning: Auto-Linking supplied '/Users/my_user_name/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit', framework linker option at /Users/my_user_name/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit is not a dylib
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBSDKAppEvents", referenced from:
objc-class-ref in AppDelegate.o
"_OBJC_CLASS_$_FBSDKApplicationDelegate", 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)
This is a new error since updating Parse and Bolts pods. Other solutions for Auto-Linking that I've seen on here have not been able to help, but since the update to Facebook SDK is new perhaps someone has already solved this issue.
It's because of the conflict between the reference of FB SDK located at /Users/my_user_name/Documents/ and the one in CocoaPods.
Originally I used FB SDK located at /Users/my_user_name/Documents/ as suggested in FB SDK Getting Started tutorial. Then switched to Cocoapods after I started using react-native.
The solution is to remove Facebook SDK references from your apps Frameworks folder in YourApp.xcodeproj. I have explained more at https://stackoverflow.com/a/36947791/556678.
Make sure you're using a current version of the FBSDK! Also make sure you followed THESE (new) instructions: https://parse.com/docs/ios/guide#users-facebook-users (because with the parse update different things must be done!).
If the problem persists, I suggest you build a new project (that follows the instructions in the previous link).

Apple Mach-O Linker Error during profile

So I ran into this wierd issue where I am able to compile and run my iOS project in simulator with out any issues but when I ran it for profiling with instrument (cmd + I) I am getting Apple mach o linker error for one of the library. I tried it reading to project but it did not helped. I also checked my search paths which looks as following
Other Linker Flags: -ObjC -all_load
Always Search User Paths: No
Framework Search Paths:$(SRCROOT) recursive
Library Search Paths:$(SRCROOT) recursive
I am getting following error message:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_TestFlight", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Am I missing anything in my linking phase which causing this thing to happen ?
It's not finding the TestFlight library. Easiest way to fix that is to find libTestFlight.a in the Xcode project browser and make sure your app is checked under "Target Membership" on the far right pane.

Facebook SDK Linker Error

Undefined symbols for architecture armv7:
"_OBJC_CLASS_$_Facebook", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I've been snooping around here looking for an answer, but have yet to find one. I've tried what other people have suggested, as in using an older SDK copy but still get this linker error. The SDK tutorial Tutorial suggests after running the script they include to drag the folder into your project. When I drag the folder I get problems. When I create a directory in my project for the files and just drag the files, then it works, but still with this linker error.
Am I missing something else? I've followed the tutorial to the " T " and still can't figure it out.
Thanks

Resources