ld: framework not found FacebookAdapter - ios

after install this library in a react-native project I have got this error.
ld: framework not found FacebookAdapter
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I have these lines in pod file
pod 'Google-Mobile-Ads-SDK'
pod 'GoogleMobileAdsMediationFacebook'
but still have issues. I have downgrade the
pod 'Google-Mobile-Ads-SDK'
pod 'GoogleMobileAdsMediationFacebook'
to lower version and tried multiple lower versions then I got these errors
Showing Recent Messages
Undefined symbol: OBJC_CLASS$_GADAdLoader
Showing Recent Messages
Undefined symbol: OBJC_CLASS$_GADMultipleAdsAdLoaderOptions
Showing Recent Messages
Undefined symbol: OBJC_METACLASS$_GADNativeAdView
Showing Recent Messages
Undefined symbol: OBJC_CLASS$_GADCustomEventExtras
Showing Recent Messages
Undefined symbol: _GADSimulatorID
Showing Recent Messages
Undefined symbol: OBJC_CLASS$_GADCustomEventExtras
Showing Recent Messages
Undefined symbol: OBJC_CLASS$_GADNativeAdMediaAdLoaderOptions
Showing Recent Messages
Undefined symbol: OBJC_CLASS$_GADNativeAdViewAdOptions

Related

React Native zoom sdk ios error " Undefined symbol: _OBJC_CLASS_$_ZoomVideoSDK"

In my project add package for video call
#zoom/react-native-videosdk
I have followed their documentation and installed SDK for ios. but when running the build from Xcode gets the following error.
enter image description here
Errors:
Undefined symbol: OBJC_CLASS$_ZoomVideoSDKSessionContext
Undefined symbol: OBJC_CLASS$_ZoomVideoSDKVideoOptions
Undefined symbol: OBJC_CLASS$_ZoomVideoSDKAudioOptions
Undefined symbol: OBJC_CLASS$_ZoomVideoSDK
Undefined symbol: OBJC_CLASS$_ZoomVideoSDKInitParams
Add framework in Link binary with libraries
Add in embed frameworks
in build setting setup Other Linker Flags with -all_load
pod delete reinstall, rebuild

XCode build fail when add Apple.GameKit plugin for Unity: Undefined symbol

I have a Unity project, after setting up Apple.Gamekit plugin, it show up some error when build with XCode:
...
_GKTurnBasedMatch_GKTurnBasedMatch_SetMatchEndedCallback_m910C3F81D2AC3130B65F3F62FC964A7AB1BB4BB4 in Apple.GameKit.o
_GKTurnBasedMatch__cctor_m700F9804CBB4DB33EDE51763CB6CE3D5DCA9005C in Apple.GameKit.o
(maybe you meant: _GKTurnBasedMatch_GKTurnBasedMatch_SetMatchEndedCallback_m910C3F81D2AC3130B65F3F62FC964A7AB1BB4BB4)
"_NSArray_Free", referenced from:
_NSArray_NSArray_Free_mC93688296693996DD20C704745DBDB169462AA95 in Apple.Core.o
_NSArray_OnDispose_m3D3F7A2BCD4038EB98125421A35CA23FCA9FF395 in Apple.Core.o
(maybe you meant: _NSArray_NSArray_Free_mC93688296693996DD20C704745DBDB169462AA95)
"_GKLeaderboard_SubmitScore", referenced from:
_GKLeaderboard_GKLeaderboard_SubmitScore_m2B37BEF38FD1A631ED4A06A894B7360A9ECDFF47 in Apple.GameKit.o
_GKLeaderboard_SubmitScore_m857EAFCB86A50F186998E8A78A22778F4AE961BD in Apple.GameKit.o
(maybe you meant: GKLeaderboard_GKLeaderboard_SubmitScore_m2B37BEF38FD1A631ED4A06A894B7360A9ECDFF47, GKLeaderboard_SubmitScore_m857EAFCB86A50F186998E8A78A22778F4AE961BD )
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Showing Recent Messages
Undefined symbol: _NSArray_GetGKTurnBasedExchangeReplyAt
Showing Recent Messages
Undefined symbol: _NSArray_GetGKLeaderboardEntryAt
Showing Recent Messages
Undefined symbol: _NSArray_GetGKLeaderboardAt
The plugin I added, which is provided by Apple: https://github.com/apple/unityplugins
What I tried so far:
Re-install Apple.Core and Apple.GameKit
Re-install pod
Update XCode to version 14.1
But nothing works.
Please help! Thank you!!!
Make sure to have the suggested unity version (2020.3.33f1) installed when you compile the plugins, otherwise they won't compile correctly.
See the requirements here: https://github.com/apple/unityplugins/blob/main/Documentation/BuildScript.md

Undefined symbol: _GADUnifiedNativeIconAsset for GoogleMobileAds

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

Creating unit tests for Xcode project results in error : Showing Recent Messages :-1: Undefined symbol: _OBJC_CLASS_$_FBSDKCodelessIndexer

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

MSCollectionViewCalendarLayout example: undefined symbols for architecture

I want that the example of MSCollectionViewCalendarLayout compiles and run.
Steps I've done:
installed CocoaPods
downloaded project
run pod install in the Example project directory
run the project from the .xcworkspace
Now I'm getting
Undefined symbols for architecture i386:
"_RKLogCoreDataError", referenced from:
___33-[RKEntityByAttributeCache load:]_block_invoke in libRestKit.a(RKEntityByAttributeCache.o)
___43-[RKManagedObjectImporter finishImporting:]_block_invoke in libRestKit.a(RKManagedObjectImporter.o)
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I tried the tips from here, but the version seem to be wrong.
How can I run this project?
Problem is, that RestKit version (0.22.0) specified in the Podfile is not compatible with Cocoapods 0.38.x. Switching to latest version 0.24.1 should fix this:
In Podfile:
pod 'RestKit', '0.24.1'

Resources