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在我的iOS设备(iPhone)上调试我的游戏,但现在当我尝试使用我的iPhone设置作为目标时,它会成功构建应用程序,然后立即停止。没有错误,控制台日志中没有任何内容。该应用程序甚至没有复制到我的设备。
Xcode says: Building, Running, Finished Running....all within 2 seconds...
Xcode说:建设,运行,完成运行....所有都在2秒内......
I'm using Xcode 4 iOS 4.3
我正在使用Xcode 4 iOS 4.3
I've tried the following:
我尝试过以下方法:
- Rebooting mac
- 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)
- Cleaned project and rebuilt
从iPhone删除应用程序并重新启动iPhone(虽然我的电源按钮不再适用于我的iPhone,所以我不得不耗尽整个电池来试试这个)
清理项目并重建
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...
似乎没有任何帮助。该游戏也在Xcode中的iOS模拟器上成功编译并运行,正如我所说,我已经能够在昨天之前复制我的游戏,但由于某种原因它只是停止工作......
UPDATE: Solved by setting the "accelerometer" from "NO" to "YES" in Info.plist.
更新:通过在Info.plist中将“加速度计”从“NO”设置为“YES”来解决。
4 个解决方案
#1
4
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.
我知道你找到了答案,但是当我从XCode 4开始一个项目时发现了类似的情况,app plist包含了所需的设备功能“armv7”。因此,即使在构建设置中添加armv6之后,该程序也无法在3G上运行。我删除了所需的设备功能“armv7”,它的工作原理。
#2
2
Solved by setting the "accelerometer" from "NO" to "YES" in Info.plist.
通过在Info.plist中将“加速度计”从“NO”设置为“YES”来解决。
#3
2
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.
如果它对任何人有帮助,对我来说问题是我的plist在“Required Device Capabilities”下的空白值。删除空白值可修复问题。
#4
0
My problem was "gps" value in plist under "Required Device Capabilities." Deleting it fixed the issue for iPad2.
我的问题是在“必需的设备功能”下的plist中的“gps”值。删除它修复了iPad2的问题。
#1
4
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.
我知道你找到了答案,但是当我从XCode 4开始一个项目时发现了类似的情况,app plist包含了所需的设备功能“armv7”。因此,即使在构建设置中添加armv6之后,该程序也无法在3G上运行。我删除了所需的设备功能“armv7”,它的工作原理。
#2
2
Solved by setting the "accelerometer" from "NO" to "YES" in Info.plist.
通过在Info.plist中将“加速度计”从“NO”设置为“YES”来解决。
#3
2
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.
如果它对任何人有帮助,对我来说问题是我的plist在“Required Device Capabilities”下的空白值。删除空白值可修复问题。
#4
0
My problem was "gps" value in plist under "Required Device Capabilities." Deleting it fixed the issue for iPad2.
我的问题是在“必需的设备功能”下的plist中的“gps”值。删除它修复了iPad2的问题。