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

Joe*_*ner 9 xcode warnings ios

我将我在Xcode中工作的应用程序的整个文件夹从一个地方移动到另一个地方,然后得到警告,ld: warning: directory not found for option然后是一条很长的路径.

我按照Apple Mach-O Linker错误接受的答案,我不知道该怎么办,但仍然得到同样的警告.

编辑:这是我收到的消息,如果它是相关的:

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'
Run Code Online (Sandbox Code Playgroud)

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

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

Joe*_*ner 3

好吧,它确实是框架搜索路径之一。我不确定删除了哪些,也不确定是哪一个负责,但如果您遇到此问题并且清除库和标题搜索路径不起作用,请尝试框架。