在这里只是记录一下,问题还没有解决。
昨天app审核通过,今天在iPhone5c(系统iOS7.0.6)上测试AppStore更新app时,发现更新成功后打开app立即就闪退,再打开现象一样。删除app,装旧版本的ipa再从AppStore更新,现象仍是一样。
本来以为最新的代码有问题,遂删除app,找到旧版本的ipa重新安装,再用Xcode联机覆盖安装最新版本,居然没问题。再试着把最新版本的ipa文件下载下来,先装旧ipa,再装新ipa,也没问题,真是奇哉怪也。
让同事用iPhone6测试一下,发现它的app已经自动升级到最新版本,并无crash问题。找了另外一台iPhone6先安装旧版本ipa,再用AppStore手动更新,也并无此问题。
由于没有Crash Log,这问题还真是无从找起,只能看到打开app crash时在Device log中的记录:
Sep 6 16:35:41 MyPhone kernel[0] <Debug>: AppleFairplayTextCrypterSession::fairplayOpen() failed, error -42017
Sep 6 16:35:41 MyPhone backboardd[28] <Warning>: Unable to obtain a task name port right for pid 4212: (os/kern) failure (5)
Sep 6 16:35:41 MyPhone com.apple.launchd[1] (UIKitApplication:test.test.app[0x2394][4212]) <Notice>: (UIKitApplication:test.test.app[0x2394]) Exited: Killed: 9
Sep 6 16:35:41 MyPhone com.apple.launchd[1] (UIKitApplication:test.test.app[0x2394]) <Error>: (UIKitApplication:test.test.app[0x2394]) assertion failed: 11B651: launchd + 74711 [3C91C465-ABC6-32C7-A677-EE0B5FDEE0DC]: 0x16
Sep 6 16:35:41 MyPhone com.apple.launchd[1] (UIKitApplication:test.test.app[0x2394]) <Error>: (UIKitApplication:test.test.app[0x2394]) assertion failed: 11B651: launchd + 74711 [3C91C465-ABC6-32C7-A677-EE0B5FDEE0DC]: 0x16
Sep 6 16:35:41 MyPhone backboardd[28] <Warning>: Could not set priority of [4212] to 1, priority: No such process
Sep 6 16:35:41 MyPhone backboardd[28] <Warning>: Could not set priority of [4212] to 0, priority: No such process
Sep 6 16:35:41 MyPhone com.apple.launchd[1] (UIKitApplication:test.test.app[0x2394]) <Notice>: (UIKitApplication:test.test.app[0x2394]) Throttling respawn: Will start in 2147483647 seconds
Sep 6 16:35:41 MyPhone backboardd[28] <Warning>: Application 'UIKitApplication:test.test.app[0x2394]' exited abnormally with signal 9: Killed: 9