我正在使用facebook sdk登录swift应用程序。当我在设备上测试时,sdk工作正常但在模拟器上它显示了一些重复的符号。我已经在构建阶段检查了编译源。没有重复的条目。
我在项目中包含了fbsdkloginkit和fbsdkcorekit。
这是错误消息的开头:
Ld的 /Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Products/Debug-iphonesimulator/Company.Social.app/Company.Social 正常的i386 cd /Users/asidhu/Desktop/Projects/Company.Social export IPHONEOS_DEPLOYMENT_TARGET = 8.0 export PATH =" /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/ usr / bin: / bin中:/ usr / sbin目录:/ sbin目录" /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator8.4.sdk -L /用户/ asidhu /库/开发商/ Xcode中/ DerivedData / Company.Social-dznvauauyeazijdnqbzqwtrnciqj /编译/产品/调试,iphonesimulator -F /用户/ asidhu /库/开发商/ Xcode中/ DerivedData / Company.Social-dznvauauyeazijdnqbzqwtrnciqj /编译/产品/调试,iphonesimulator -F / Users / asidhu / Desktop / Projects / Company.Social -F / Users / asidhu / Downloads / FacebookSDKs-iOS-20150910 -filelist /Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build /Intermediates/Company.Social.build/Debug-iphonesimulator/Company.Social.build/Objects-normal/i386/Company.Social.LinkFileList -Xlinker -rpath -Xlinker @ executable_path / Frameworks -Xlinker -objc_abi_version -Xlinker 2 -ObjC -L / Applications / Xcode.app / Contents / Developer / Toolchains / XcodeDefault.xctoolchain / usr / lib / swift / iphonesimulator -Xlinker -add_ast_path -Xlinker /Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Intermediates/Company.Social.build/Debug-iphonesimulator/Company.Social.build/Objects-normal/i386 /Company_Social.swiftmodule -mios-simulator-version-min = 8.0 -framework StoreKit -framework UIKit -framework FBSDKLoginKit -framework SystemConfiguration -framework Security -framework MediaPlayer -framework CoreText -framework CoreGraphics -framework CoreMotion -framework GoogleSignIn -framework CoreLocation -framework Foundation -framework FBSDKCoreKit -framework AssetsLibrary -framework AddressBook -Xlinker -dependency_info -Xlinker /Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Intermediates/Company.Social.build/Debug-iphonesimulator/Company.Social.build/Objects-normal/i386/Company.Social_dependency_info .DAT -o /Users/asidhu/Library/Developer/Xcode/DerivedData/Company.Social-dznvauauyeazijdnqbzqwtrnciqj/Build/Products/Debug-iphonesimulator/Company.Social.app/Company.Social
重复符号_llvm.cmdline in: /Users/asidhu/Downloads/FacebookSDKs-iOS-20150910/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginButton.o) /Users/asidhu/Downloads/FacebookSDKs-iOS-20150910/FBSDKLoginKit.framework/FBSDKLoginKit(FBSDKLoginCompletion.o) 重复符号_llvm.embedded.module in: /Users/asidhu/Downloads/FacebookSDKs-iOS-20150910/FBSDKLoginKit.framework /
这是错误消息的结尾:
FBSDKLoginKit(FBSDKLoginButton.o) /Users/asidhu/Downloads/FacebookSDKs-iOS-20150910/FBSDKCoreKit.framework/FBSDKCoreKit(FBSDKMaleSilhouetteIcon.o) ld:架构i386 clang的154个重复符号:错误:链接器 命令失败,退出代码为1(使用-v查看调用)