安装facebook sdk后,在构建项目时,它会显示:
ld: warning: directory not found for option '-F/Users/liyuanliu/Library/Developer/Xcode/DerivedData/c5-dsovqtraubbdgxbqrmiexjmlysxq/Build/Products/Debug-iphonesimulator/Bolts'
ld: warning: directory not found for option '-F/Users/liyuanliu/Library/Developer/Xcode/DerivedData/c5-dsovqtraubbdgxbqrmiexjmlysxq/Build/Products/Debug-iphonesimulator/FBSDKCoreKit'
ld: warning: directory not found for option '-F/Users/liyuanliu/Library/Developer/Xcode/DerivedData/c5-dsovqtraubbdgxbqrmiexjmlysxq/Build/Products/Debug-iphonesimulator/FBSDKLoginKit'
ld: warning: directory not found for option '-F/Users/liyuanliu/Library/Developer/Xcode/DerivedData/c5-dsovqtraubbdgxbqrmiexjmlysxq/Build/Products/Debug-iphonesimulator/FBSDKShareKit'
ld: framework not found Bolts
clang: error: linker command failed with exit code 1 (use -v to see invocation)
但是,当我安装facebook和bolts时,表明我已成功安装它们:pod install
Analyzing dependencies
Downloading dependencies
Using Bolts (1.8.4)
Using FBSDKCoreKit (4.14.0)
Using FBSDKLoginKit (4.14.0)
Using FBSDKShareKit (4.14.0)
Using Firebase (3.4.0)
Using FirebaseAnalytics (3.3.0)
Using FirebaseAppIndexing (1.0.4)
Using FirebaseAuth (3.0.4)
下面是我的构建阶段图像:而下面找不到 bolt 框架图片
我找不到
FBXXXX.framework
添加框架后,它仍然存在:
最佳答案
转到Project->TARGETS-Build Phases->Link Binary With Libraries
在此处附加您的Bolts
库。
现在单击+按钮->
现在单击Add Other。。按钮->在计算机上找到FBSDK框架并附加它。编译并运行您的应用程序。
关于ios - 为什么显示 "ld: framework not found Bolts",我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/38759480/