iphone - clang : error: no such file or directory:

标签 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'

我该如何解决?

我已经

  • 检查用户 header 搜索路径以包含库
  • 确保 Base SDK 和编译设置适用于 iOS6/armv7
  • 将项目中的 .framework 和 .a 文件添加到 Linked Frameworks & Libraries

提前致谢。

最佳答案

转到你的 Target ->Build settings ->other linker flag 看看是否完成了 => -框架 基金会

关于iphone - clang : error: no such file or directory:,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13648432/

相关文章:

iphone - MPMoviePlayerController 不适用于 iOS 5

ios - 如何让 SKLabelNode 在执行操作后运行 waitForDuration SKAction 进行更新?

ios - performSegueWithIdentifier :sender: not finding my segue

ios - 模拟器错误 "linker command failed with exit code 1 (use -v to see invocation)"

iphone - iOS 7 Beta - 应用内测试不起作用

javascript - Sencha Touch 不设置比例并允许在 iPhone 或 iPad 上滚动和调整大小

iphone - 条形图不适合显示 Iphone

ios - 如何在MagicalRecord版本> = 2.0中使用上下文?

ios - 在 UICollectionViewFlowLayout 中启用 AutoSizing 单元格时,DecorationView 会调整大小

iphone - 如何检测 subview 中的触摸事件或当我们触摸 subview 时如何使父 View 被触摸?