当试图编译我的项目时,我收到这个错误,想知道是否有人知道如何解决它?.app文件找不到衍生数据
我已阅读所有有关这种链接器错误的SO和其他地方的答案。我已经尝试了很多解决方案,其中包括xcode中非常受欢迎的--delete派生数据,完全退出xcode,在命令行上再次删除它,然后重新启动xcode - 仍然没有任何结果。这是在我尝试将设备附加到我的计算机(我从组织者中删除)后尝试在iPad上运行它的朋友之后开始的。我在我的智慧结束,不能再浪费时间了。任何想法如何解决它?
Products文件夹中的应用程序文件为红色。
编辑:更多信息:实际的应用程序没有被构建并放入库/开发人员/ {app}/Build/Product文件夹中。我尝试重新连接设备并从苹果网站手动添加配置文件,然后尝试在设备选中时进行Build->存档应用。我仍然得到错误。我试过在调试中改变调试版本并完成所有这些,但我仍然遇到了错误。我尝试卸载xcode并重新安装它,删除完全离开计算机的应用程序(包括派生数据)从Git拉下来,我得到相同的错误。
Ld /Users/mischabuckler/Library/Developer/Xcode/DerivedData/TRx-clxlusutxvcrlkddtqwtoxibcmhc/Build/Products/Debug-iphonesimulator/UnitTests.octest/UnitTests normal i386 cd /Users/mischabuckler/Desktop/Git/TRx setenv IPHONEOS_DEPLOYMENT_TARGET 6.1 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 -bundle -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk -L/Users/mischabuckler/Library/Developer/Xcode/DerivedData/TRx-clxlusutxvcrlkddtqwtoxibcmhc/Build/Products/Debug-iphonesimulator -F/Users/mischabuckler/Library/Developer/Xcode/DerivedData/TRx-clxlusutxvcrlkddtqwtoxibcmhc/Build/Products/Debug-iphonesimulator -F/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator6.1.sdk/Developer/Library/Frameworks -F/Applications/Xcode.app/Contents/Developer/Library/Frameworks -filelist /Users/mischabuckler/Library/Developer/Xcode/DerivedData/TRx-clxlusutxvcrlkddtqwtoxibcmhc/Build/Intermediates/TRx.build/Debug-iphonesimulator/UnitTests.build/Objects-normal/i386/UnitTests.LinkFileList -bundle_loader /Users/mischabuckler/Library/Developer/Xcode/DerivedData/TRx-clxlusutxvcrlkddtqwtoxibcmhc/Build/Products/Debug-iphonesimulator/TRx.app/TRx -Xlinker -objc_abi_version -Xlinker 2 -fobjc-arc -fobjc-link-runtime -Xlinker -no_implicit_dylibs -mios-simulator-version-min=6.1 -framework SenTestingKit -framework UIKit -framework Foundation -o /Users/mischabuckler/Library/Developer/Xcode/DerivedData/TRx-clxlusutxvcrlkddtqwtoxibcmhc/Build/Products/Debug-iphonesimulator/UnitTests.octest/UnitTests
ld: file not found: /Users/mischabuckler/Library/Developer/Xcode/DerivedData/TRx-clxlusutxvcrlkddtqwtoxibcmhc/Build/Products/Debug-iphonesimulator/TRx.app/TRx clang: error: linker command failed with exit code 1 (use -v to see invocation)
不知道你的问题是什么。你想做什么? – 2013-04-09 01:08:29
对不起,我会编辑的问题更清楚。 – dwf 2013-04-09 01:09:15
您是在尝试构建测试目标还是应用目标? – 2013-04-09 03:28:44