通過Xcode 10提交的App在iOS 9.0 ~ iOS 9.2版本手機(jī)上會(huì)隨機(jī)crash,這個(gè)問題本來以為是程序哪里的bug,結(jié)果排除了各種“變量”后,發(fā)現(xiàn)唯一可能出問題的就是Xcode了。通過搜索發(fā)現(xiàn),這個(gè)問題是Xcode的一個(gè)know issue:
Known Issues
Apps that contain asset catalogs built using Xcode 10 or later with a deployment target set to iOS 9.0, 9.1 or 9.2 produce content incompatible with the runtimes of those iOS versions. (44535967, 45723580, 45723189)
原文參見:https://developer.apple.com/documentation/xcode_release_notes/xcode_10_1_release_notes?preferredLanguage=occ
那么解決方案有兩個(gè):
- 使用Xcode 9.4.1打包提交App
- 將可支持的最低iOS版本提到iOS 9.3
參考:
https://stackoverflow.com/questions/52364231/our-app-crashed-in-ios-9-which-upload-by-xcode-10