Facebook-sdk-for-unity: 7.17.2 XCode Build error on fresh FBSDK install

Created on 23 Jul 2019  路  8Comments  路  Source: facebook/facebook-sdk-for-unity

Using Unity 2018.4.1.
I got XCode link error: Library not found for -lBolts

Even after deleting and reimporting version 7.17.2 of the sdk.

Most helpful comment

My bad. I realized I should open the .xcworkspace file instead of .xcodeproj file.

All 8 comments

I just tried patching the sdk with the latest commit which removed Bolts, now i am getting library not found for -lFBSDKCoreKit

I'm not hugely familiar with the iOS side of the SDK but have you resolved the Cocopods?

image

I clicked that button and it says CocoaPods installation detected /Users/lawson/.gem/ruby/2.3.0/bin/pod

Here's some warning logs that might be relevant:
ld: warning: directory not found for option '-L/Users/lawson/Library/Developer/Xcode/DerivedData/Unity-iPhone-cvttmzniriokjmbfxzjoqcvkwtij/Build/Products/ReleaseForRunning-iphoneos/Bolts' ld: warning: directory not found for option '-L/Users/lawson/Library/Developer/Xcode/DerivedData/Unity-iPhone-cvttmzniriokjmbfxzjoqcvkwtij/Build/Products/ReleaseForRunning-iphoneos/FBSDKCoreKit' ld: warning: directory not found for option '-L/Users/lawson/Library/Developer/Xcode/DerivedData/Unity-iPhone-cvttmzniriokjmbfxzjoqcvkwtij/Build/Products/ReleaseForRunning-iphoneos/FBSDKLoginKit' ld: warning: directory not found for option '-L/Users/lawson/Library/Developer/Xcode/DerivedData/Unity-iPhone-cvttmzniriokjmbfxzjoqcvkwtij/Build/Products/ReleaseForRunning-iphoneos/FBSDKShareKit' ld: library not found for -lBolts

I tried typing pod in terminal and got this:

$ pod
-bash: pod: command not found

is that ok?

Sorry. I'm afraid I don't know, I am able to build fine without these issues. I would take a look at some of the iOS library files in the Unity project. Maybe some of them haven't been selected to be included for iOS?

Hmm.. there is nothing inside the build/Release-iphoneos folder

My bad. I realized I should open the .xcworkspace file instead of .xcodeproj file.

@happypepper how did you solved this error
i m also having an error like this
FBSDKCoreKit file not found
from xcode
do you know how can i solve it
i m using FBsdk "Version 7.17.2"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Shaitan1805 picture Shaitan1805  路  6Comments

naklow12 picture naklow12  路  6Comments

derwaldgeist picture derwaldgeist  路  4Comments

SeriouslySam picture SeriouslySam  路  6Comments

alchemyincarnate picture alchemyincarnate  路  4Comments