从 Xcode(和 Instruments)在 iPhone 上运行 iPhone 应用程序的问题
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1503996/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Problem running iPhone application on iPhone from Xcode (and in Instruments)
提问by Ben
I have a problem running one application on the iPhone from Xcode (or Instruments). When I try to run the app I get the error message Failed to upload XXX.app in the bottom left corner of Xcode. The strange thing is it actually uploaded the app to the iPhone but it doesn't start it (after this I can start the app by hand on the iPhone).
我在 iPhone 上从 Xcode(或 Instruments)运行一个应用程序时遇到问题。当我尝试运行该应用程序时,我在 Xcode 的左下角收到错误消息 Failed to upload XXX.app。奇怪的是它实际上将应用程序上传到 iPhone,但它没有启动它(在此之后我可以在 iPhone 上手动启动应用程序)。
So without being able to start the app from Xcode or instruments I have no chance of debugging/performance testing.
因此,如果无法从 Xcode 或仪器启动应用程序,我就没有机会进行调试/性能测试。
Any advice on what might be going wrong here?
关于这里可能出现什么问题的任何建议?
The iPhone console shows me this:
iPhone 控制台向我展示了这个:
Thu Oct 1 14:25:18 unknown mobile_installationd[1976] <Error>: 00808e00 install_embedded_profile: Skipping the installation of the embedded profile
Thu Oct 1 14:25:23 unknown SpringBoard[25] <Warning>: Reloading and rendering all application icons.
Other applications work fine. I've tried this on two iPhones (both 3.1) with the same result. I am running Xcode 3.2 on SnowLeopard.
其他应用程序工作正常。我已经在两部 iPhone(均为 3.1)上尝试过,结果相同。我在 SnowLeopard 上运行 Xcode 3.2。
Regards
问候
回答by Shawn
This happened to me as well (more than once). I ultimately had to restart Xcode to resolve the problem (after verifying the code signing settings were correct, the provisioning profile was installed, etc..).
这也发生在我身上(不止一次)。我最终不得不重新启动 Xcode 来解决这个问题(在验证代码签名设置正确后,配置文件已安装,等等)。
回答by iphone007
I had the same problem and restarting Xcode solved it. Of course I checked that the right provisioning profile was installed on the iPhone and that the bundle id in the project settings matched the provisioning profile.
我遇到了同样的问题,重新启动 Xcode 解决了它。当然,我检查了 iPhone 上是否安装了正确的配置文件,并且项目设置中的包 ID 与配置文件匹配。
回答by leviathan
Restarting Xcode solved the problem. While Xcode was running I downloaded a newer version of the iPhone OS via iTunes (v 3.1) and sync (but did not update) the iPhone. My current OS version on the device was 3.0
重新启动Xcode解决了这个问题。当 Xcode 运行时,我通过 iTunes (v 3.1) 下载了更新版本的 iPhone OS 并同步(但没有更新)iPhone。我当前在设备上的操作系统版本是 3.0
Maybe this helps.
也许这有帮助。
回答by Nava Carmon
It says it couldn't install the profile. Check thoroughly your code sign settings and verify after you build the application that the profile you used for code signing indeed the one you chose: go inside the package of the built application, find the embedded.mobileprovision file, open it with a TextEdit application, look for <name>
tag and see the value. If the value doesn't match the profile you have set in your project, that's might be the reason for the problem.
它说它无法安装配置文件。彻底检查您的代码签名设置并在您构建应用程序后验证您用于代码签名的配置文件确实是您选择的配置文件:进入构建的应用程序包,找到embedded.mobileprovision 文件,使用TextEdit 应用程序打开它,查找<name>
标签并查看值。如果该值与您在项目中设置的配置文件不匹配,则可能是出现问题的原因。
回答by Elliot
Perhaps your executable name is set incorrectly.
也许您的可执行文件名称设置不正确。
Expand the Targets group, double-click your target, go to the Properties tab, and check the setting next to "Executable:"
展开目标组,双击您的目标,转到属性选项卡,然后检查“可执行文件:”旁边的设置
In my projects, it's set to ${EXECUTABLE_NAME}
在我的项目中,它设置为 ${EXECUTABLE_NAME}
I think you can also check this in your Info.plist file.
我想你也可以在你的 Info.plist 文件中检查这个。