iPhone应用程序在iOS 4上安装后无法启动,在设备重启后运行 [英] iPhone app fails to launch after install on iOS 4, works after device reboot

查看:381
本文介绍了iPhone应用程序在iOS 4上安装后无法启动,在设备重启后运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个适用于iOS 3.0 - 3.1.3的应用程序。在测试iOS 4 SDK ad-hoc构建时,应用程序的行为很奇怪。安装后(使用Xcode,iTunes或iPhone配置实用程序),该应用程序执行以下两项操作之一:

I have an application that worked just fine on iOS 3.0 - 3.1.3. When testing an iOS 4 SDK ad-hoc build however the app behaves strangely. After installation (with either Xcode, iTunes or iPhone Configuration Utility) the app does one of two things:


  1. 应用程序启动并运行,但失败在后续发布时只显示黑屏。

  2. 应用程序立即失败并显示黑屏。

由于应用程序永远无法达到可以调试的程度,因此无法进行调试。 Xcode控制台显示没有与远程调试器联系,iPhone控制台只显示与该应用程序相关的一行:

Debugging is not possible since the app never reaches a point where it can be debugged. The Xcode console shows no contact with the remote debugger, and the iPhone console shows only a single line related to the app:


6月26日星期六01:41:48 iPhone SpringBoard [28]:无法将激活事件发送到no.applics.myapp恢复动画激活:animationStart = 1880.316523041667 deactivate:killed:(ipc / send)无效目标端口

Sat Jun 26 01:41:48 iPhone SpringBoard[28] : Unable to send activation event to no.applics.myapp resume animate activate: animationStart = 1880.316523041667 deactivate: killed : (ipc/send) invalid destination port

我认为这可能表明多任务是问题所在,但UIApplicationExitsOnSuspend打开和关闭都会发生同样的事情。

I thought this might indicate multitasking was the problem, but the same thing happens with UIApplicationExitsOnSuspend both on and off.

我还测试了SDK 3.1.3版本并获得了相同的行为。

I also tested a SDK 3.1.3 build and got the same behaviour.

真正有趣的部分是,如果iPhone重新启动,安装的应用程序工作正常。我开始认为这是iOS 4和配置的问题。有没有其他人经历过这个或类似的东西?

The really interesting part is that if the iPhone is rebooted the installed app works fine. I'm starting to think this is an issue with iOS 4 and provisioning. Has anyone else experienced this or something similar?

推荐答案

我在4.0.1 iPhone 3GS上遇到了同样的错误 - 一个应用程序在开始失败前一天工作正常,然后呈现黑屏。从Xcode运行应用程序导致gdb因putpkt:write failed消息而崩溃。我也无法使用组织者删除相关的配置文件,Apple显然已经删除了iOS4中的Settings-> General-> Profiles。

I encountered the same bug on a 4.0.1 iPhone 3GS - an app that worked fine the day before started failing on startup, and then presenting a black screen. Running the app from Xcode was causing gdb to crash with "putpkt: write failed" message. I also could not use the organizer to remove the relevant provisioning profiles, and Apple has apparently removed Settings->General->Profiles in iOS4.

重新启动手机,移除应用程序,并删除Xcode管理器中的配置文件,为我修复了这个错误。

Rebooting the phone, removing the app, and removing the provisioning profiles in Xcode organizer fixed this bug for me.

控制台日志中的Springboard错误:

Springboard errors from the console log:

activate:  deactivate: eventOnly underLock : (ipc/send) invalid destination port
activate:  deactivate: animate : (ipc/send) invalid destination port

这篇关于iPhone应用程序在iOS 4上安装后无法启动,在设备重启后运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆