iOS中的链接器错误(架构x86_64的重复符号) [英] Linker Error in iOS (duplicate symbols for architecture x86_64)
问题描述
我继续收到以下错误:
duplicate symbol _llvm.embedded.module in:
/Users/name/Documents/FacebookSDKs-iOS-20150910/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKApplicationDelegate.o)
/Users/name/Documents/FacebookSDKs-iOS-20150910/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfiguration.o)
ld: 102 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我已经尝试删除FBSDK并重新安装,但这没有工作。我也怀疑,我将框架与Swift桥接的事实可能是问题。我的桥接头包含以下内容:
I've tried deleting the FBSDK and reinstalling, but that has not work. I also suspect that the fact that I'm bridging the framework into Swift may be the problem. My bridging header contains the following:
#ifndef EggCrush_Bridge_h
#define EggCrush_Bridge_h
#import <FBSDKCoreKit/FBSDKCoreKit.h>
#endif
我的AppDelegate.swift文件导入FBSDKCoreKit。
没有其他链接器标志。
我正在运行Xcode 6.3.2并为iOS 8.3构建项目
My AppDelegate.swift file imports FBSDKCoreKit.
There are no other linker flags.
I'm running Xcode 6.3.2 and building a project for iOS 8.3
如何清除此错误?
推荐答案
如果没有错误,您使用的是刚刚在2015年9月10日由Facebook发布的sdk命名为 FacebookSDKs-iOS-20150910.zip 。尝试使用2015年8月13日发布的sdk,命名为 FacebookSDKs-iOS-20150813.zip 并向Facebook报告重复问题,如果可以的话。谢谢。
If not mistaken, you are using the sdk which just released by Facebook at September 10th, 2015 which named as FacebookSDKs-iOS-20150910.zip. Try to use sdk that released at August 13th, 2015 which named as FacebookSDKs-iOS-20150813.zip and report to Facebook about the duplication problem if you can. Thank you.
这篇关于iOS中的链接器错误(架构x86_64的重复符号)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!