I am getting the below error after migrating to version 9.5.0.
Undefined symbols for architecture x86_64:
"_GADUnifiedNativeIconAsset", referenced from:
-[GADFBNativeBannerAd didRenderInView:clickableAssetViews:nonclickableAssetViews:viewController:] in FacebookAdapter(GADFBNativeBannerAd.o)
-[GADFBUnifiedNativeAd didRenderInView:clickableAssetViews:nonclickableAssetViews:viewController:] in FacebookAdapter(GADFBUnifiedNativeAd.o)
-[GADFBNativeRenderer didRenderInView:clickableAssetViews:nonclickableAssetViews:viewController:] in FacebookAdapter(GADFBNativeRenderer.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing All Errors Only
Undefined symbol: _GADUnifiedNativeIconAsset
Updating Facebook sdks resolved this issue for me-
pod 'Google-Mobile-Ads-SDK', '9.0.0'
pod 'GoogleMobileAdsMediationFacebook'
pod 'FBAudienceNetwork', '6.10.0'
GoogleMobileAdsMediationFacebook and FBAudienceNetwork versions may differ based on Google-Mobile-Ads-SDK version
Related
I'm using xcode 13,
React-native version 0.64.2
Its working fine in Android but iOS I getting error
It builds with the following error:
Undefined symbols for architecture x86_64:
"_RCTRegisterModule", referenced from:
+[RNMixpanel load] in RNMixpanel.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Undefined symbol: _RCTRegisterModule
Not sure if it's the same thing but for me my solution was an issue with the packages, they had s.dependancy as React when it should be React-Core. See here: https://github.com/facebook/react-native/issues/29633#issuecomment-694187116
You can manually change them to see if it works for you and then use the patcher as suggested to fix the libraries.
I have encountered the following error message:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_VTapManager", referenced from:
objc-class-ref in VTapManagerHelper.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Have you tried enabling dynamic frameworks? That worked for me.
To do it go to the podfile in your workspace and open it, then:
#Uncomment the next line if you're using Swift or would like to use dynamic frameworks
remove the hash here -> #use_frameworks!
It's minor, but don't forget to quit Xcode and run your yourProject.xcworkspace instead of yourProject.xcodeproj after installing CocoaPods
When adding this to my pods file ( for unit testing purposes )
target 'MY_PROJECT_TITLE_Tests' do
inherit! :search_paths
pod 'Firebase'
end
I get the error when compiling:
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$_FBSDKCodelessIndexer", referenced from:
objc-class-ref in FBSDKMarketingKit(FBSDKButtonIndexer.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
there were no errors prior to the "pod install" of the above podfile change. Why is this / is there a fix? thank you.
Likely a pod update is needed.
There could be an incompatibility between old versions of Firebase and FBSDK like How to fix build error with FBSDKLoginKit in Xcode
According to AdMob documentation, in order to integrate with facebook audience network I need to install this pod:
pod 'GoogleMobileAdsMediationFacebook'
When I try to install it, I received an error:
Undefined symbols for architecture x86_64: "_OBJC_CLASS_$_GADUnifiedNativeAdView", referenced from:
objc-class-ref in FacebookAdapter(GADFBNativeAd.o) ld: symbol(s) not found for architecture x86_64 clang: error: linker command failed
with exit code 1 (use -v to see invocation)
Unfortunately I didn't find a solution for this issue.
Thanks.
I had the same problem. It worked after I deleted an old version of FBAudienceNetwork.framework's path in Framework Search Paths.
I added to my pod file
pod 'google-plus-ios-sdk', '1.4.1'
I did a
pod update
I imported
#import <GooglePlus/GooglePlus.h>
But if i try to
[GPPSignIn sharedInstance].clientID = kClientID;
I get this error from linker:
Undefined symbols for architecture i386:
"_OBJC_CLASS_$_GPPSignIn", referenced from:
objc-class-ref in SDSocialManager.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
In my experience linker errors typically don't lead to a "one solution fits all", but I was able to solve this problem myself by adding ${inherited} to Other Linker Flags in Build Settings (Project Target).
Perhaps, by not having this tag, I wasn't inheriting some of the static libraries that were required by GPPSignIn.
Cheers!