Search code examples
iphoneios4iphone-4

App freeze and then crashes on splash screen


I have an iPhone App published for a while, developed under the SDK3, and everything works great. Some weeks ago, when Apple released the SDK4 I made some changes to my app to support multitasking (it plays audio in the background).

In my simulator and my device (iPhone 3GS iOS4) the app runs great, there is no problem at all. But, now when I submit the update, a lot of users are contacting me because they say that the app freezes on the splash screen and after waiting about 40-60 seconds, it crashes.

By asking to the users, I have determinate that the problem is only in those devices that haves iOS4 (iPhone 3Gs and 4G).

I tested the app over and over in my simulator and my device but it never happens to me!! Some one have any idea or information about this?

I will really appreciate it. Thanks.


Solution

  • After search for the crashes, and try over and over, I can't reproduce the bug on my devices. So, I decide to start reading at the Apple Developer Forums and I found a thread where my suspicions are affirmed: this problem is caused by an internal iOS4 bug.

    "There's a bug in the App Store's code signing process. Talk to DTS: they can help you with the workaround. Mention rdar://7909951."

    "...but it should be the cause of nearly all "failed to launch in time" inside libobjc:_mapStrHash..." (This appears in some of my app crashes)

    Here is the link to the post: failed to launch in time in iOS4

    There is no certain solution, but some suggest that a start is changing from arm6 to arm7 and try.

    You can try changing some code in the app for producing a different binary and submit it again.

    I hope it can help anyone else.