iPhone app fails to launch after install on iOS 4, works after device reboot

孤街醉人 提交于 2019-12-22 15:04:06

问题


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. App launches and works, but fails on subsequent launches and just shows a black screen.
  2. App fails with black screen immediately.

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:

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

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

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

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?


回答1:


I have, just today. I have no idea why. I'm starting to think it may have something to do with syncing with iTunes, then installing an app. I've only noticed it when I've had photos to sync with iPhoto.




回答2:


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.

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

Springboard errors from the console log:

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


来源:https://stackoverflow.com/questions/3123729/iphone-app-fails-to-launch-after-install-on-ios-4-works-after-device-reboot

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!