clang:错误:没有这样的文件或目录:

时间:2012-11-30 15:45:15

标签: iphone ios xcode ipad compiler-construction

我正在尝试使用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'

我该如何解决?

我已经

  • 选中用户标题搜索路径以包含图书馆
  • 确保Base SDK&编译设置适用于iOS6 / armv7
  • 添加了.framework& .a文件从项目到Linked Frameworks&库

提前致谢。

2 个答案:

答案 0 :(得分:8)

转到目标 - >构建设置 - >其他链接器标记,看看是否已完成=> -framework 基础

答案 1 :(得分:1)

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