简体   繁体   English

更新到新版本后,iOS中的应用程序崩溃了

[英]App in iOS crashed after update to new version

We have recently recieved some complains from our users that he/she cannot start the app after updating our app to the new version on Apple App Store. 我们最近收到了一些用户的抱怨,他们在将我们的应用程序更新到Apple App Store上的新版本后无法启动应用程序。 The screen turns black for a second after tapping on the app's icon, and it goes back to home screen. 点击应用程序的图标后,屏幕会变黑一秒,然后返回主屏幕。

There is no crash log generated. 没有生成崩溃日志。 Here is the only log that I can get from Xcode's Devices window. 这是我可以从Xcode的Devices窗口获得的唯一日志。

Mar  9 13:56:54 SST-iPhone5S-Black kernel[0] <Debug>: AppleFairplayTextCrypterSession::fairplayOpen() failed, error -42017
Mar  9 13:56:54 SST-iPhone5S-Black backboardd[31] <Warning>: Unable to obtain a task name port right for pid 146: (os/kern) failure (5)
Mar  9 13:56:54 SST-iPhone5S-Black com.apple.launchd[1] (UIKitApplication:com.abc.def[0xdfdd][146]) <Notice>: (UIKitApplication:com.abc.def[0xdfdd]) Exited: Killed: 9
Mar  9 13:56:54 SST-iPhone5S-Black com.apple.launchd[1] (UIKitApplication:com.abc.def[0xdfdd]) <Error>: (UIKitApplication:com.abc.def[0xdfdd]) assertion failed: 11D257: launchd + 99240 [802BC42B-7AAC-33FE-8B52-C441858B62B5]: 0x16
Mar  9 13:56:54 SST-iPhone5S-Black com.apple.launchd[1] (UIKitApplication:com.abc.def[0xdfdd]) <Error>: (UIKitApplication:com.abc.def[0xdfdd]) assertion failed: 11D257: launchd + 99240 [802BC42B-7AAC-33FE-8B52-C441858B62B5]: 0x16
Mar  9 13:56:54 SST-iPhone5S-Black backboardd[31] <Warning>: Could not set priority of [146] to 1, priority: No such process
Mar  9 13:56:54 SST-iPhone5S-Black backboardd[31] <Warning>: Could not set priority of [146] to 0, priority: No such process
Mar  9 13:56:54 SST-iPhone5S-Black com.apple.launchd[1] (UIKitApplication:com.abc.def[0xdfdd]) <Notice>: (UIKitApplication:com.abc.def[0xdfdd]) Throttling respawn: Will start in 2147483647 seconds
Mar  9 13:56:54 SST-iPhone5S-Black backboardd[31] <Warning>: Application 'UIKitApplication:com.abc.def[0xdfdd]' exited abnormally with signal 9: Killed: 9

Note: please ignore the bundle identifier. 注意:请忽略捆绑标识符。

I have searched through Google and found out that it is an iOS DRM (fairplay) problem. 我搜索了Google,发现这是iOS DRM(公平竞赛)问题。 However, most of the results I found contain the different error code in the first line of logs, and it didn't look like to be the same problem. 但是,我发现的大多数结果都包含第一行日志中的不同错误代码,并且它看起来不像是同一个问题。

According to my test, I found out that this problem occurred on iOS7 only. 根据我的测试,我发现这个问题只发生在iOS7上。

Has anyone experienced this problem? 有没有人遇到这个问题? Or does anyone know how can I find out the meaning of the error -42017? 或者有谁知道如何找出错误-42017的含义? Any feedback would be appreciated. 对于任何反馈,我们都表示感谢。

If it is only your app crashing then make sure that you didn't make any changes to keychain or nsuserdefaults key in the updated version. 如果只是您的应用程序崩溃了,请确保您未对更新版本中的钥匙串或nsuserdefaults密钥进行任何更改。 Or make sure you handled correctly on decrypting it from storage. 或者确保在从存储中解密时正确处理。 This might cause the app being open after a new version update. 这可能会导致应用程序在新版本更新后打开。

In the past AppleFairplayTextCrypterSession::fairplayOpen() has occurred when the app store was serving corrupt binaries to some users. 过去AppleFairplayTextCrypterSession::fairplayOpen()发生在应用商店向某些用户提供损坏的二进制文件时。 Your code isn't even running, the problem is iOS trying to verify the signature on the binary and failing. 您的代码甚至没有运行,问题是iOS试图验证二进制文件上的签名而失败。 iOS can tell that the app is corrupt and refuses to launch it. iOS可以告知该应用程序已损坏,并拒绝启动它。

The only immediate fix is for users to delete the app and reinstall it, and hope that the app store works right this time. 唯一的即时修复是用户删除应用程序并重新安装它,并希望这次应用程序商店正常工作。 You could also upload an update (even if nothing has really changed) so that it will show up as "new" and people with the problem will get a new copy that way. 您还可以上传更新(即使没有真正更改),以便它显示为“新”,有问题的人将以这种方式获得新副本。 You should also contact Apple directly about this, since they're the only ones who can actually fix it. 您也应该直接与Apple联系,因为他们是唯一可以实际解决此问题的人。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM