ld:警告:找不到选项的目录 - 删除派生数据和清理项目不起作用

时间:2013-02-16 15:55:38

标签: ios xcode warnings

我将Xcode中正在处理的应用的整个文件夹从我的计算机上的一个地方移动到另一个地方,然后收到警告ld: warning: directory not found for option,然后是一条很长的路径。

我按照Apple Mach-O Linker errors and I don't know what to do处接受的答案,但仍然收到同样的警告。

编辑:以下是我收到的消息,如果相关的话:

Ld /Users/joel/Library/Developer/Xcode/DerivedData/GayHaikuTabbed-aszefnihmscxaachdbimtmeozapo/Build/Products/Debug-iphonesimulator/GayHaikuTabbed.app/GayHaikuTabbed normal i386
cd /Users/joel/Development/GayHaiku
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.1.sdk -L/Users/joel/Library/Developer/Xcode/DerivedData/GayHaikuTabbed-aszefnihmscxaachdbimtmeozapo/Build/Products/Debug-iphonesimulator -L/Users/joel/Development/GayHaiku/GayHaikuTabbed -L/Users/joel/Development/GayHaiku -F/Users/joel/Library/Developer/Xcode/DerivedData/GayHaikuTabbed-aszefnihmscxaachdbimtmeozapo/Build/Products/Debug-iphonesimulator -F. -FGayHaikuTabbed -FGayHaikuTabbedTests -F/Users/joel/Development/GayHaiku -F/Users/joel/Development/GayHaiku/../../../Downloads -F/Users/joel/Development/GayHaiku/../../Downloads -filelist /Users/joel/Library/Developer/Xcode/DerivedData/GayHaikuTabbed-aszefnihmscxaachdbimtmeozapo/Build/Intermediates/GayHaikuTabbed.build/Debug-iphonesimulator/GayHaikuTabbed.build/Objects-normal/i386/GayHaikuTabbed.LinkFileList -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.0 -framework Parse -framework Accounts -framework AdSupport -framework AudioToolbox -framework CFNetwork -framework CoreGraphics -framework CoreLocation -framework Foundation -framework Twitter -lsqlite3 -lz -lz.1.1.3 -framework MessageUI -framework MobileCoreServices -framework QuartzCore -framework Security -framework Social -framework StoreKit -framework SystemConfiguration -framework UIKit -o /Users/joel/Library/Developer/Xcode/DerivedData/GayHaikuTabbed-aszefnihmscxaachdbimtmeozapo/Build/Products/Debug-iphonesimulator/GayHaikuTabbed.app/GayHaikuTabbed

ld: warning: directory not found for option '-F/Users/joel/Development/GayHaiku/../../../Downloads'

编辑:原来清理项目会删除警告 - 但只有在我再次构建它之后,才会再次出现警告。我也尝试删除派生数据,但没有做任何事情。 :(

编辑:好了,库搜索路径和标题搜索路径都是空的,但框架搜索路径设置中有几个路径。我想尝试删除它们,但我担心我会破坏别的东西,因为在这一点上我已经超出了我真正知道实际意味着什么的地方;我只是按下按钮并保持手指交叉。

2 个答案:

答案 0 :(得分:3)

嗯,它确实是框架搜索路径之一。我不确定删除了哪些,我不确定哪一个是负责任的,但是如果你遇到这个问题并且清除了图书馆和标题搜索路径没有成功,请尝试使用框架。

答案 1 :(得分:0)

你应该看看这个问题‘ld: warning: directory not found for option’它可能正是你要找的东西:)