0

The app I'm working on builds & runs just fine in the iPhone Simulator, but, when I try to test it on an iPhone 4S, XCode says, "Finished running ..." immediately after I click "Run", and, when I look at the iPhone, there's no icon for the app at all. It's as though XCode doesn't detect that XCode isn't deploying the app to the device.

I've got a signed certificate, a developer profile, and a valid provisioning profile (XCode's Organizer says so). The provisioning profile is present on the iPhone.

I've tried restoring the iPhone, and I still get the same error.

How do I successfully deploy my app to the iPhone?

Edit:

It's deep in the comments of the below answer, but the problem was that I had a misspelled within Info.plist's required Required device capabilities section. I solved it by deleting that row.

4

1 回答 1

2

几件事要检查:

清理你的构建文件夹并重建。在 Xcode 项目导航器的产品文件夹下,您的应用程序是否存在?

打开 iTunes 并尝试将这个应用程序拖入 iTunes。它会出现在 iTunes 中还是出现错误?如果它出现,你可以通过 iTunes 将它安装到 iPhone 上吗?

您的 iPhone iOS 版本和 Xcode 版本以及构建设置是否同步?我知道某些版本的 Xcode 4.x 在 iOS 4.x 上构建和运行应用程序时存在问题。

于 2012-07-09T21:29:45.700 回答