- Home /
Error building for iOS: framework not found FBSDKCoreKit for architecture armv7
I recently updated my OSX to El Capitan and, because of an issue with my previous version of Unity (v 5.0.1 I believe), I was forced to update to the latest version (5.2.1f1). Now, when I build for iOS, I get the following error during the linking process:
ld: framework not found FBSDKCoreKit for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I am using the Soomla library for in-app purchases and social integration, as well as Parse for the online database. I believe at least one of these libraries could be responsible for this, since they both contain Facebook-related code. In any case, I can't figure out what I need to try next. Both plugins have been updated to their latest versions.
I attempted building with the Mono2x scripting backend first, as usual. Then, I tried changing it to IL2CPP and tried compiling for armv7, arm64, and the Universal architecture options. Nothing worked.
I also tried manually adding the FBSDKCoreKit framework file downloaded from https://developers.facebook.com/docs/ios. This also didn't work, except this time I got a slightly different error:
ld: framework not found FBSDKCoreKit
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm not sure why it would say this when I explicitly add the framework into the Xcode project. Could anyone give me any insight?
UPDATE:
Following @fraoula's advice, I added the download directory of the Facebook SDK files to the Framework Search Paths under the Xcode Build Settings. By doing so, it appears that the likelihood of the issue ultimately being caused by the Soomla plugin has risen. Here are the new linker errors:
ld: warning: Auto-Linking supplied '/Users/willseph/Downloads/Chrome/FacebookSDKs-iOS-20151007/FBSDKCoreKit.framework/FBSDKCoreKit', framework linker option at /Users/willseph/Downloads/Chrome/FacebookSDKs-iOS-20151007/FBSDKCoreKit.framework/FBSDKCoreKit is not a dylib
Undefined symbols for architecture armv7:
"_soomlaSync_initialize", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaSync_resetState", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaHighway_setHighwayUrl", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBAppEventsLogPurchase", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaGifting_sendGift", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaHighway_setServicesUrl", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosSetShareDialogMode", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaDlc_checkPackageStatus", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaGifting_initialize", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosLogout", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaDlc_startSync", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaDlc_initialize", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaDlc_getFilesPathsInPackage", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosInit", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaDlc_getFilePath", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosAppRequest", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaDlc_checkSyncedPackagesStatus", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBAppEventsLogEvent", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaQuery_queryFriendsStates", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFeedRequest", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaHighway_start", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosLogin", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosJoinGameGroup", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBSettingsActivateApp", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosCreateGameGroup", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaSync_resolveConflict", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBSettingsPublishInstall", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosGetDeepLink", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaHighway_initialize", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_soomlaSync_registerUnityConflictResolver", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
"_iosFBAppEventsSetLimitEventUsage", referenced from:
RegisterMonoModules() in RegisterMonoModules.o
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I'm not sure what this indicates, but I have a hunch that Xcode is looking for these Soomla-related symbols within the FBSDKCoreKit framework. There may be a modified version of it provided by Soomla that I can't find, but in any case, I'm still stuck.
However I do believe this warrants an inquiry on Soomla's own support forum. If anyone here still has experience with Soomla or could offer any additional insight, it would be very much appreciated.
Answer by fraoula · Oct 15, 2015 at 01:11 AM
Hi!
I had the same problem. I solved it by adding FacebookSDK path to Framework Search Paths located under build settings.
Thanks for the insight! I have updated my question with the outcome of your suggestion.
Answer by ndmrzk · Mar 21, 2020 at 10:39 AM
Hi, this is super old, but how to add the facebook sdk path? i have the sdk file in Documents/facebook-unity-sdk-7.19.0/FacebookSDK/facebook-unity-sdk-7.19.0.unitypackage How do i add that into the Framework Search Paths. I mean i found where Framework Search Paths is, i mean the facebook sdk path, should i just put "Documents/facebook-unity-sdk-7.19.0/FacebookSDK" or how?
Also, when importing the frameworks arent automatically created is that an issue?