【问题标题】:Xcode : warning: directory not found for option [duplicate]Xcode:警告:找不到选项的目录[重复]
【发布时间】:2012-07-08 14:34:50
【问题描述】:
Ld /Users/pwang/Library/Developer/Xcode/DerivedData/socketiohldwxnslzhlnjtgihgewdwavpjpb/Build/Products/Debug-iphoneos/socketio.app/socketio normal armv7
cd /Users/pwang/Desktop/saturngod-Socket.io-with-iOS-be51414
setenv IPHONEOS_DEPLOYMENT_TARGET 4.3
setenv PATH "/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.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 armv7 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk -L/Users/pwang/Library/Developer/Xcode/DerivedData/socketio-hldwxnslzhlnjtgihgewdwavpjpb/Build/Products/Debug-iphoneos -L/Users/pwang/Desktop/saturngod-Socket.io-with-iOS-be51414/socketio/simulator -L/Users/pwang/Desktop/saturngod-Socket.io-with-iOS-be51414/socketio/device -F/Users/pwang/Library/Developer/Xcode/DerivedData/socketio-hldwxnslzhlnjtgihgewdwavpjpb/Build/Products/Debug-iphoneos -F/Users/pwang/Desktop/saturngod-Socket.io-with-iOS-be51414/socketio -filelist   /Users/pwang/Library/Developer/Xcode/DerivedData/socketio-hldwxnslzhlnjtgihgewdwavpjpb/Build/Intermediates/socketio.build/Debug-iphoneos/socketio.build/Objects-normal/armv7/socketio.LinkFileList -dead_strip -lz -licucore -miphoneos-version-min=4.3 -framework MobileCoreServices -framework Foundation -lz -lxml2 -framework SystemConfiguration -framework CFNetwork -framework UIKit -framework CoreGraphics -o /Users/pwang/Library/Developer/Xcode/DerivedData/socketio-hldwxnslzhlnjtgihgewdwavpjpb/Build/Products/Debug-iphoneos/socketio.app/socketio

ld: warning: directory not found for option '-L/Users/pwang/Desktop/saturngod-Socket.io-with-iOS-be51414/socketio/simulator'
ld: warning: directory not found for option '-L/Users/pwang/Desktop/saturngod-Socket.io-with-iOS-be51414/socketio/device'

你能给我一些线索来删除警告吗,谢谢。

【问题讨论】:

  • 确保您也打开了工作区,而不仅仅是项目文件

标签: xcode ios5 linker linker-errors


【解决方案1】:

目标>构建设置

寻找Search Paths > Framework Search Paths,删除所有被警告过的路径;然后在 Library Search Paths 中,删除您被警告过的所有路径。

【讨论】:

  • 值得澄清的是,您必须选择 目标 而不是项目才能看到这一点。
  • 谢谢,我讨厌警告,这个答案对我有帮助!
  • 谢谢,我收到了警告,答案已解决。我从目标中删除了所有出现此警告的路径。
  • @jrturton 谢谢!最后!你值得称赞!
【解决方案2】:

我发现这篇文章正在寻找同样的问题。但是,我的问题是添加了一些框架然后删除了,从而导致了这个错误。在对项目进行清理后,我一切都很好。

Product --> Clean

【讨论】:

    猜你喜欢
    • 2013-08-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-03-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-11-26
    相关资源
    最近更新 更多