错误:在ipad上运行时无法启动 [英] Error : failed to launch, when running on ipad
问题描述
经过多次挫折之后,我终于得到了一个可以在iPad上运行而没有错误的应用程序。但是它没有运行。它给出以下错误。我的应用程序确实在模拟器上运行但不能在iPad上运行并给出以下错误。我真的不确定为什么。我去了描述的文件夹文件夹的结构如下。
After much frustration I've finally got an application to run on an iPad without errors. However it doesn't run. It gives the following error. My application does run on the simulator but doesn't run on an iPad and gives the below error. I'm really not sure why. I went to the described folder the structure of the folder is as follows.
Products
.DS_Store
Debug-iphoneos
.DS_Store
sampleproject.app
sampleproject.app.dSYM
Debug-iphonesimulator
.DS_Store
sampleproject.app
sampleproject.app.dSYM
error: failed to launch '/Users/x/Library/Developer/Xcode/DerivedData/sampleproject/Build/Products/Debug-iphoneos/sampleproject.app/myProject' -- No such file or directory (/Users/x/Library/Developer/Xcode/DerivedData/sampleproject/Build/Products/Debug-iphoneos/sampleproject.app/myProject)
推荐答案
在目标iPad3 5.1的Xcode 4.3.2上遇到了同样的错误,但是在这些步骤之后能够在我的设备上构建和运行:
Just had the same error on Xcode 4.3.2, with target iPad3 5.1, but was able to build and run on my device after these steps:
Deleted my DerivedData directory (emptied trash too)
Quit XCode
Disconnected iPad USB
Rebooted Mac
Rebooted iPad (power down and back up)
Reconnected iPad USB.
Restarted Xcode with project
Confirmed build for debug on device selected.
Clicked Run
我不知道所有这些步骤是否都是强制性的。这是一个糟糕的答案,因为它既没有解释问题,也没有提供确定的解决方案。我希望Apple更好;我找了一个更好的答案,但一无所获。
I've no idea whether all these steps are mandatory. This is a crummy answer, since it neither explains the problem, nor offers a sure fix. I expect better of Apple; I've looked for a better answer, but found nothing.
重新启动以解决问题无法解决! OTOH,它让我继续我的工作,所以...一个小小的祝福。
Rebooting to solve problems is no solution! OTOH, it let me proceed on with my work, so...a small blessing.
这篇关于错误:在ipad上运行时无法启动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!