Can not launch the app on device

后端 未结 11 1314
臣服心动
臣服心动 2021-02-07 14:47

When i try to launch my application from Xcode to the device, i get this error:

error: failed to launch \'/Users/Luca/Library/Developer/Xcode/DerivedData/myapp-b         


        
11条回答
  •  别那么骄傲
    2021-02-07 15:22

    I also ran into this problem compiling a Cocos2D project on an iPhone 4. That was after having followed all the steps suggested by Jeff Grimes but to no avail. Everything had been working fine, so I was a bit stumped.

    The fail was a caused by change of the UIRequiredDeviceCapabilities for accelerometer from YES to NO (as the app isn't using accelerometer I decided to just drop the requirement). I changed it back and everything is fine - compiling again.

    Incidentally - I thought that changing the value of the key to NO meant that the accelerometer would just not be required. This is wrong - this breaks the compiler as it checks to make sure the device has NOT got an accelerometer, which of course returns true for most devices. So you just need to delete that row entirely if you don't need accelerometer support.

提交回复
热议问题