我接管了另一位开发人员的Xcode项目,并尝试在我的本地计算机上运行代码。
我收到此错误:
Undefined symbols for architecture x86_64:
这是我的Xcode日志文件:
Ld
/Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Products/Debug-iphonesimulator/TheBridesOffice.app/TheBridesOffice
normal x86_64
cd "/Users/etiennelouw/Downloads/App (1)/TheBridesOffice"
export IPHONEOS_DEPLOYMENT_TARGET=7.0
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-arch x86_64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator9.3.sdk
-L/Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Products/Debug-iphonesimulator
-F/Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Products/Debug-iphonesimulator
-F/Users/etiennelouw/Downloads/App\ (1)/TheBridesOffice/TheBridesOffice/Class/Addition/Parse
-F/Users/etiennelouw/Downloads/App\ (1)/TheBridesOffice/TheBridesOffice/Class/Addition/Facebook
-F/Users/etiennelouw/Documents/FacebookSDK -filelist /Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Intermediates/TheBridesOffice.build/Debug-iphonesimulator/TheBridesOffice.build/Objects-normal/x86_64/TheBridesOffice.LinkFileList
-Xlinker -rpath -Xlinker @executable_path/Frameworks -mios-simulator-version-min=7.0 -Xlinker -no_deduplicate -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -lsqlite3 -framework Bolts -framework MobileCoreServices -framework FBSDKShareKit -framework ParseCrashReporting -framework
FBSDKMessengerShareKit -framework FBAudienceNetwork -framework
FBSDKCoreKit -framework ParseFacebookUtilsV4 -framework FBSDKLoginKit
-framework Parse -framework SystemConfiguration -framework AudioToolbox -framework CoreImage -framework ParseFacebookUtils
-framework QuartzCore -framework ParseUI -Xlinker -dependency_info -Xlinker /Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Intermediates/TheBridesOffice.build/Debug-iphonesimulator/TheBridesOffice.build/Objects-normal/x86_64/TheBridesOffice_dependency_info.dat
-o /Users/etiennelouw/Library/Developer/Xcode/DerivedData/TheBridesOffice-dikntijbbbpirgcsdaggnwtzafqj/Build/Products/Debug-iphonesimulator/TheBridesOffice.app/TheBridesOffice
Undefined symbols for architecture x86_64:
"_FBSDKAppEventNameFBSessionNativeAppSwitchLoginDialogResult",
referenced from:
-[FBSDKLoginManagerLogger logNativeAppDialogResult:dialogDuration:] in
FBSDKLoginKit(FBSDKLoginManagerLogger.o)
"_FBSDKDialogConfigurationNameLogin", referenced from:
-[FBSDKLoginManager logInWithBehavior:serverConfiguration:serverConfigurationLoadError:]
in FBSDKLoginKit(FBSDKLoginManager.o)
-[FBSDKLoginManager(Native) performBrowserLogInWithParameters:handler:] in
FBSDKLoginKit(FBSDKLoginManager.o)
"_FBSDKMonotonicTimeGetCurrentSeconds", referenced from:
-[FBSDKLoginManagerLogger parametersWithTimeStampAndClientState:forAuthMethod:] in
FBSDKLoginKit(FBSDKLoginManagerLogger.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see
invocation)
以下是我在架构下的内容: Architectur
以下是我在facebook SDK入门指南后导入的框架文件: Framework
答案 0 :(得分:0)
您的项目似乎在链接时缺少依赖关系,因为链接阶段缺少button
。
尝试通过Facebook指南 - Getting Started with the Facebook SDK for iOS重新检查您的配置。