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