架构 x86_64 的重复符号(实现 FBSDKCoreKilt)Swift
Posted
技术标签:
【中文标题】架构 x86_64 的重复符号(实现 FBSDKCoreKilt)Swift【英文标题】:duplicate symbols for architecture x86_64 (Implementing FBSDKCoreKilt) Swift 【发布时间】:2015-09-11 17:52:42 【问题描述】:这是迄今为止我处理过的最可怕的错误。说清楚:
-
这很快,所以不是“.h”“.m”问题
我的编译源很小,没有重复。
我已经多次重新下载 SDK,但始终无法正常工作。
项目中只有两个框架:FBSDKCoreKit 和 LoginKit
有什么想法吗?什么是重复的?
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginConstants.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginConstants.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginError.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginError.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManager.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManager.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManagerLoginResult.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManagerLoginResult.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginTooltipView.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginTooltipView.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginUtility.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginUtility.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKTooltipView.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKTooltipView.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(_FBSDKLoginRecoveryAttempter.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(_FBSDKLoginRecoveryAttempter.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManagerLogger.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginManagerLogger.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKSystemAccountStoreAdapter.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKSystemAccountStoreAdapter.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequestPiggybackManager.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequestPiggybackManager.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAppEventsStateManager.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAppEventsStateManager.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfigurationManager.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKServerConfigurationManager.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequest.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequest.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKContainerViewController.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKContainerViewController.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessTokenCache.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessTokenCache.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKCrypto.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKCrypto.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAppEventsState.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAppEventsState.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKCloseIcon.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKCloseIcon.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBase64.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBase64.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBridgeAPIProtocolWebV2.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBridgeAPIProtocolWebV2.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequestBody.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKGraphRequestBody.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKUtility.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKUtility.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBoltsMeasurementEventListener.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKBoltsMeasurementEventListener.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKLogger.o)
duplicate symbol _llvm.embedded.module in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKLogger.o)
duplicate symbol _llvm.cmdline in:
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKAccessToken.o)
/Users/charleswesleycho/Documents/FacebookSDK/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKApplicationDelegate.o)
duplicate symbol _llvm.embedded.module in:
ld: 142 duplicate symbols for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
【问题讨论】:
你的 Facebook SDK 版本是多少? 最新版本v4.6.0 我建议先尝试前一个。 developers.facebook.com/docs/ios/downloads 或尝试单独安装最新的 Bolts 版本 换了老版本,还是不行。 然后尝试手动将 Bolts 安装到您的项目中。没有更多的想法。 【参考方案1】:这是最新的 Facebook SDK(2015 年 9 月 10 日)的问题。下载之前的版本。
看到这个答案https://***.com/a/32519847/1052084 对我有用。
【讨论】:
感谢您的回答。甚至我下载的新 SDK(20151007)也有同样的问题。【参考方案2】:感谢在使用 facebook SDK https://developers.facebook.com/resources/FacebookSDKs-iOS-20150813.zip 时与我合作
【讨论】:
【参考方案3】:这也可能是由于您的项目中包含的任何包含的静态库或子项目具有不同的目标版本,即。您有一个 externalSourcesLibrary 项目,它的构建目标设置为最低版本 6.0,而您的主项目设置为更高版本,例如 8.4,反之亦然。
【讨论】:
【参考方案4】:我通过删除手动导入的 FBSDK 依赖项(从带有库的链接二进制文件)并将以下行添加到 pod 文件来解决:
pod 'FBSDKCoreKit'
pod 'FBSDKLoginKit'
pod 'FBSDKShareKit'
【讨论】:
以上是关于架构 x86_64 的重复符号(实现 FBSDKCoreKilt)Swift的主要内容,如果未能解决你的问题,请参考以下文章