Xcode 10.0/Xcode 10.1 打包上传App Store,iOS 9系列设备用户下载app出现随机Crash解决方法

现象:

  1. Xcode 10.0/ Xcode 10.1 Workspace setting的Build system 设置为default build system 打包,上传到Test flight 测试阶段,使用iOS 9 系统手机下载测试,不会crash
  2. 使用在Test flight 测试 iOS 9不会crash 的包提交App Store审核,审核通过后 用户iOS9系列设备从App Store下载的包出现随机crash
  3. App Store审核通过后,再从Test Flight 下载之前测试通过没问题的包,iOS9系列出现crash

分析

Crash 原因:

App Store 分发Bug,上传后的IPA经过App Store分发之后后,加载assets中的图在iOS 9上会Crash。

Xcode 10.1 Release Notes https://developer.apple.com/documentation/xcode_release_notes/xcode_10_1_release_notes

更新Xcode 10.1 之后苹果申称该问题已解决:
在这里插入图片描述

然而并没有,之后该Resolve issue 改为了,去掉修复Bug的描述
在这里插入图片描述

解决方法

  1. 切回到XCode 9.4打包,前提是你没有用到一些iOS 12的新特性。
  2. 弃用Assets,把里面的图(除了icon和launch image)拖拽到项目里,按照普通图片的方式使用。
  3. 在Xcode 10.1环境下,设置该测试分支Workspace setting的Build system 为Default build system 打包测试
    在这里插入图片描述
  4. 等待Apple修复

猜你喜欢

转载自blog.csdn.net/sinat_15735647/article/details/85013995