這兩天app上了新版本煎殷,通過bugly統(tǒng)計后臺屯伞,發(fā)現(xiàn)崩潰出現(xiàn)爆發(fā)性增長。打開一看
1506762500470.jpg
478CE242-2001-432F-B0D3-B2D4B1D463C3.png
這尼瑪是什么鬼豪直,全都沒見過傲右 ! 還這么多 仔細一看崩潰系統(tǒng)全是9.0 9.1 9.2的顶伞。
有不少的用戶打電話過來投訴饵撑,啊剑梳,我的那個煩啊滑潘!測試機怎么測都重現(xiàn)不了垢乙,同事朋友又沒人有同版本的真機。 趕緊查資料找人問语卤。最后在網(wǎng)上看到相似的情況追逮。主要原因是因為打的包里含有p3圖片
嘗試了一下
1. Create an Inspectable .ipa file. In the Xcode Organizer (Xcode->Window->Organizer), select an archive to inspect, click “Export...", and choose "Export for Enterprise or Ad-Hoc Deployment". This will create a local copy of the .ipa file for your app.
2. Locate that .ipa file and change its the extension to .zip.
3. Expand the .zip file. This will produce a Payload folder containing your .app bundle.
4. Open a terminal and change the working directory to the top level of your .app bundle
cd path/to/Payload/your.app
5. Use the find tool to locate Assets.car files in your .app bundle as shown below:
find . -name 'Assets.car'
6. Use the assetutil tool to find any 16-bit or P3 assets, in each Assets.car your application has as shown below. :
sudo xcrun --sdk iphoneos assetutil --info /path/to/a/Assets.car > /tmp/Assets.json
7. Examine the resulting /tmp/Assets.json and look for any contents containing “DisplayGamut": “P3” and its associated “Name". This will be the name of your imageset containing one or more 16-bit or P3 assets.
8. Replace those assets with 8-bit / sRGB assets, then rebuild your app.
中文版
1159872-7984c726748019e1.png
目前等待手機驗證!粹舵!