Xcode突然停止在硬件上运行项目:“无法启动xxx.app:..没有这样的文件..” [英] Xcode suddenly stopped running project on hardware: "Could not launch xxx.app: .. No such file.."
问题描述
Xcode已停止运行我的应用程序,它是在我从设备中删除它后直接启动的,并尝试通过在Xcode中重新运行来重新安装(我之前已做过数百次)。
Xcode has stopped being able to run my app, it started directly after I deleted it from the device and attempted to re-install by rerunning it in Xcode (something I've done hundreds of times before).
它说
无法启动XXX.app
"Could not launch XXX.app"
没有这样的文件或目录(/Users/Mylaptop/Library/Developer/Xcode/DerivedData/MyApp-ekxcbebfpzkahtfkujyqkcwprzia/Build/Products/Debug-iphoneos/MyApps.app/MyApp)\"\"
"No such file or directory (/Users/Mylaptop/Library/Developer/Xcode/DerivedData/MyApp-ekxcbebfpzkahtfkujyqkcwprzia/Build/Products/Debug-iphoneos/MyApps.app/MyApp)."
我重新启动了手机,重新启动了Xcode,清理了所有内容,重建了所有内容。这个错误消息不会消失。
I've rebooted the phone, relaunched Xcode, cleaned everything, rebuilt everything. This error message won't go away.
这是Xcode 4.5,我已经使用它,因为它可用,如果我恢复到4.3.2然后Xcode说完成正在运行的应用程序,但实际上并没有做任何事情 - 应用程序既没有安装也没有运行。
This is with Xcode 4.5 which I've been using since it became available, if I revert to 4.3.2 then Xcode says "Finished running app" but it doesn't actually do anything - the app is neither installed nor run.
我完全卡住了 - 无法在设备上运行任何东西再过。
I'm completely stuck - unable to run anything on the device anymore.
有什么建议吗?
推荐答案
这真令人讨厌。在许多不同的情况下会发生此错误。有时重新启动Xcode,修复了问题。如果没有,请按以下步骤操作:
That is really annoying. This error happens in a number of different situations. Sometimes restarting the Xcode, fixes the problem. If not, follow these steps:
断开您的设备。
从您的设备中删除该应用。
Delete the app from your device.
退出Xcode(不要只是关闭窗口,退出)
Quit Xcode (Do not just simply close the window, quit it)
删除派生数据文件夹(〜/ Library / Developer / Xcode / DerivedData / -gbrvhlvwmpiobxdujegtghggrffp
- 或类似的东西)
Delete derived data folder (~/Library/Developer/Xcode/DerivedData/-gbrvhlvwmpiobxdujegtghggrffp
- or something like that)
现在再次启动Xcode ,连接设备并运行项目。它应该可以正常工作。
Now start Xcode once again, connect device and run the project. It should work fine.
来自DhilipSiva 博客
from DhilipSiva blog
这篇关于Xcode突然停止在硬件上运行项目:“无法启动xxx.app:..没有这样的文件..”的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!