在派生数据中找不到.app文件 [英] .app file not found in Derived Data

查看:142
本文介绍了在派生数据中找不到.app文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试编译我的项目时,我收到此错误,我想知道是否有人知道如何修复它?

When trying to compile my project I am getting this error and am wondering if anyone knows how to fix it?

我已经阅读了有关此类链接器错误的SO和其他地方的每个答案。我已经尝试了很多解决方案,包括在xcode中非常流行的--delete派生数据,完全退出xcode,在命令行上再次删除它然后重新启动xcode--仍然没有。这是在我尝试将设备连接到我的计算机(我已经从组织者中删除)之后开始的,这是一个朋友试图在他的iPad上运行它。我在我的智慧结束,不能再浪费时间了。关于如何修复它的任何想法?

I've read every answer on SO and elsewhere on the internet pertaining to this kind of linker error. I've tried so many solutions, including the very popular --delete derived data in xcode, quit xcode completely, delete it again on the command line and then restart xcode-- still nothing. This started after I tried to attach a device to my computer (which I've since deleted from the organizer) that was a friends to try to run it on his iPad. I'm at my wits end and can't afford to waste anymore time on this. Any ideas on how to fix it?

Products文件夹中的应用程序文件为红色。

The app file in the Products folder is red.

编辑:更多信息:实际的应用程序尚未构建并放入Library / Developer / {app} / Build / Product文件夹中。我尝试重新连接设备并从Apple网站手动添加配置文件,然后尝试在选择设备时构建 - >存档应用程序。我仍然得到错误。我已经尝试在Schemes中从调试更改为发布并完成所有这些,我仍然得到错误。我尝试卸载xcode并重新安装它,完全从计算机上删除应用程序(包括派生数据)从Git拉回来,我得到了同样的错误。

More info: The actual app is not being built and put in the Library/Developer/{app}/Build/Product folder. I've tried reconnecting the device and adding the provision profile manually from the apple website, then trying to Build->Archive the app while the device is selected. I still get the error. I've tried changing from debug to release in the Schemes and doing all of that, I still get the error. I tried uninstalling xcode and reinstalling it, deleting the app completely off the computer (including the derived data) pulling back down from Git and I get the same error.


Ld / Users / mischabuckler / Library / Developer / Xcode / DerivedData / TRx-clxlusutxvcrlkddtqwtoxibcmhc / Build / Products / Debug-iphonesimulator / UnitTests。 octest / UnitTests正常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 /用户/ mischabuckler / Library / Developer / Xcode / DerivedData / TRx-clxlusutxvcrlkddtqwtoxibcmhc / Build / Products / Debug-iphonesimulator -F / Users / mischabuckler / Library / Developer / Xcode / DerivedData / TRx-clxlusutxvcrlkddtqwtoxibcmhc / Buil d / 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 /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:找不到文件:/Users/mischabuckler/Library/Developer/Xcode/DerivedData/TRx-clxlusutxvcrlkddtqwtoxibcmhc/Build/Products/Debug-iphonesimulator/TRx.app/TRx
clang:错误:链接器命令失败,退出代码为1(使用-v看到调用)

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)


推荐答案

所以对于其他任何发现这一点并且对我结束感到沮丧的人我正在做的是删除我的应用程序和单元测试的目标依赖项,然后构建应用程序一次,然后重新添加它们并再次构建应用程序,它工作正常。

So for anyone else who finds this and is frustrated what I ended up doing was deleting the target dependencies for both my app and the unit tests and then building the app once, then re-adding them and building the app again, and it worked fine.

这篇关于在派生数据中找不到.app文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆