Xcode Succeeds Build, but does not copy to iOS Device, and terminates debugger immediately

一个人想着一个人 提交于 2019-12-12 10:36:03

问题


This problem is pretty ridiculous and I'm running out of ideas of what to try:

I have been successfully using Xcode to debug my game on my iOS device (iPhone) for the past couple of weeks, but now all it will do when I try to do a run with my iPhone set as target is successfully build the application and then Stop immediately. No Errors, nothing in console logs. The application doesn't even copy over to my device.

Xcode says: Building, Running, Finished Running....all within 2 seconds...

I'm using Xcode 4 iOS 4.3

I've tried the following:

  1. Rebooting mac
  2. Deleting application from iPhone and rebooting iPhone (although my power button no longer works on my iPhone, so I had to run down the entire battery to try this)
  3. Cleaned project and rebuilt

Nothing seems to help. The game compiles and runs successfully on the iOS Simulator within Xcode as well, and as I've said I've been able to copy my game over prior to yesterday, but for some reason it just stopped working...

UPDATE: Solved by setting the "accelerometer" from "NO" to "YES" in Info.plist.


回答1:


I know you found your answer but I found a similar case when starting a project from XCode 4, the app plist contains a required device capabilities "armv7". So even after adding armv6 to the build settings, the program didn't run on a 3G. I deleted the required device capabilities "armv7" and it works.




回答2:


Solved by setting the "accelerometer" from "NO" to "YES" in Info.plist.




回答3:


If it helps anyone, the problem for me was a blank value in my plist under "Required Device Capabilities." Deleting the blank value fixed the issue.




回答4:


My problem was "gps" value in plist under "Required Device Capabilities." Deleting it fixed the issue for iPad2.



来源:https://stackoverflow.com/questions/6636924/xcode-succeeds-build-but-does-not-copy-to-ios-device-and-terminates-debugger-i

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!