我正在尝试使用 OAuth2Client 编译项目,但出现错误:
Ld /Users/willmoss26/Library/Developer/Xcode/DerivedData/Elance5WS-ebjkwadamxzcifcdxvdmtiiqdpoy/Build/Products/Debug-iphonesimulator/ELance5.app/ELance5 normal i386
cd /Users/willmoss26/Documents/XCode/ELance5
setenv IPHONEOS_DEPLOYMENT_TARGET 6.0
setenv 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/iPhoneSimulator6.0.sdk -L/Users/willmoss26/Library/Developer/Xcode/DerivedData/Elance5WS-ebjkwadamxzcifcdxvdmtiiqdpoy/Build/Products/Debug-iphonesimulator -F/Users/willmoss26/Library/Developer/Xcode/DerivedData/Elance5WS-ebjkwadamxzcifcdxvdmtiiqdpoy/Build/Products/Debug-iphonesimulator -filelist /Users/willmoss26/Library/Developer/Xcode/DerivedData/Elance5WS-ebjkwadamxzcifcdxvdmtiiqdpoy/Build/Intermediates/ELance5.build/Debug-iphonesimulator/ELance5.build/Objects-normal/i386/ELance5.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 /Users/willmoss26/Library/Developer/Xcode/DerivedData/Elance5WS-ebjkwadamxzcifcdxvdmtiiqdpoy/Build/Products/Debug-iphonesimulator/OAuth2Client/OAuth2Client -lOAuth2Client -framework UIKit -framework Foundation -framework CoreGraphics -o /Users/willmoss26/Library/Developer/Xcode/DerivedData/Elance5WS-ebjkwadamxzcifcdxvdmtiiqdpoy/Build/Products/Debug-iphonesimulator/ELance5.app/ELance5
clang: error: no such file or directory: '/Users/willmoss26/Library/Developer/Xcode/DerivedData/Elance5WS-ebjkwadamxzcifcdxvdmtiiqdpoy/Build/Products/Debug-iphonesimulator/OAuth2Client/OAuth2Client'
我该如何解决?
我已经
- 检查用户标头搜索路径以包含库
- 确保基本 SDK 和编译设置适用于 iOS6 / armv7
- 将 .framework 和 .a 文件从项目添加到链接框架和库
提前致谢。