3

我正在尝试使用 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 文件从项目添加到链接框架和库

提前致谢。

4

2 回答 2

8

转到您的目标 -> 构建设置 -> 其他链接器标志,看看这是否完成 => -framework Foundation

于 2015-08-24T02:07:24.223 回答
1

转到项目的 Build Phase 页面并展开 Compile Sources 以删除以红色突出显示的文件。

于 2014-11-04T01:34:13.063 回答