Xcode - 链接器命令失败,退出代码为1

时间:2016-02-09 12:10:50

标签: ios xcode swift

此时我是Xcode中的菜鸟,我尝试使用模拟器运行一个项目但是我收到此错误:

duplicate symbol _llvm.cmdline in:
    /Users/dpulgarin/Projects/runator-ios/Runator/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
    /Users/dpulgarin/Projects/runator-ios/Runator/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfiguration.o)
duplicate symbol _llvm.embedded.module in:
    /Users/dpulgarin/Projects/runator-ios/Runator/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
    /Users/dpulgarin/Projects/runator-ios/Runator/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfiguration.o)
duplicate symbol _llvm.cmdline in:
    /Users/dpulgarin/Projects/runator-ios/Runator/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
    /Users/dpulgarin/Projects/runator-ios/Runator/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKMaleSilhouetteIcon.o)
duplicate symbol _llvm.embedded.module in:
    /Users/dpulgarin/Projects/runator-ios/Runator/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
    /Users/dpulgarin/Projects/runator-ios/Runator/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKMaleSilhouetteIcon.o)
ld: 184 duplicate symbols for architecture x86_64

clang: error: linker command failed with exit code 1 (use -v to see invocation)

我不知道会发生什么,我想帮助解决它。

提前致谢。

1 个答案:

答案 0 :(得分:2)

最新Facebook SDK(2015年9月10日)的问题。下载此版本。

查看对我有用的答案https://stackoverflow.com/a/32519847/1052084