简体   繁体   English

从Xcode(和仪器)在iPhone上运行iPhone应用程序时出现问题

[英]Problem running iPhone application on iPhone from Xcode (and in Instruments)

I have a problem running one application on the iPhone from Xcode (or Instruments). 从Xcode(或Instruments)在iPhone上运行一个应用程序时遇到问题。 When I try to run the app I get the error message Failed to upload XXX.app in the bottom left corner of Xcode. 当我尝试运行应用程序时,我收到错误消息无法在Xcode的左下角上传XXX.app。 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但它没有启动它(此后我可以在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. 我在两个iPhone(均为3.1)上尝试了这个,结果相同。 I am running Xcode 3.2 on SnowLeopard. 我在SnowLeopard上运行Xcode 3.2。

Regards 问候

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来解决问题(在验证代码签名设置正确后,安装配置文件等等)。

I had the same problem and restarting Xcode solved it. 我有同样的问题,重新启动Xcode解决了它。 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. 当然,我检查了iPhone上安装了正确的配置文件,并且项目设置中的软件包ID与配置文件相匹配。

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. 彻底检查代码签名设置,并在构建应用程序后验证您用于代码签名的配置文件确实是您选择的配置文件:进入构建应用程序的包中,找到embedded.mobileprovision文件,使用TextEdit应用程序打开它,查找<name>标签并查看值。 If the value doesn't match the profile you have set in your project, that's might be the reason for the problem. 如果该值与您在项目中设置的配置文件不匹配,则可能是问题的原因。

Restarting Xcode solved the problem. 重新启动Xcode解决了这个问题。 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. 当Xcode运行时,我通过iTunes(v 3.1)下载了更新版本的iPhone OS并同步(但没有更新)iPhone。 My current OS version on the device was 3.0 我当前在设备上的操作系统版本是3.0

Maybe this helps. 也许这有帮助。

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文件中查看。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM