App Store稽核App閃退解決方案

weixin_33860722發表於2017-09-21

發件人 Apple

    1. 1 Performance: App Completeness
      Guideline 2.1 - Performance - App Completeness

We were unable to review your app as it crashed on launch. We have attached detailed crash logs to help troubleshoot this issue.

Next Steps

To resolve this issue, please revise your app and test it on a device to ensure it will launch without crashing.

Resources

For information on how to symbolicate and read a crash log, please review Tech Note TN2151 Understanding and Analyzing Application Crash Reports.

  • crashlog-B89230D7E-52D0-4E77-AE01-7A13SDFB4AD.txt
  • crashlog-E39ERAE-5B58-48B3-923E-ASD610C45F7.txt
  • crashlog-7CAS3B299-D37E-4601-AGFA-CA4ASDA0D1E.txt

根據稽核員提供的crashlog檔案,找到對應的奔潰的程式碼。

  • App Store提供的crashLog

是一堆記憶體地址,沒有顯示具體的方法名

1430247-78f17bbf80f8e099.png
32488AA0-10DE-4BDE-BF36-E476D784C8F6.png
  • 對奔潰資訊進行符號化後


    1430247-8cc2769817522617.png
    7A6CB2D8-3D9E-49F7-8DBD-77FE20A751AD.png

符號化需要的材料

  • dSYM檔案(必須是生成對應ipa的xarchive檔案,顯示包內容,裡面的dSYM檔案)
  • crash檔案(將App Store提供的crashlog,儲存到本地,字尾名改為.crash)
  • symbolicatecrash 工具(終端輸入 find /Applications/Xcode.app -name symbolicatecrash -type f)

將3個檔案放大同一資料夾,終端cd 進入該檔案輸入以下指令

lomodeMacBook-Pro:dftcrashlog lomowu$ ./symbolicatecrash ./B89230D7E-52D0-4E77-AE01-7A13SDFB4AD.crash ./MyDemo.app.dSYM > symbol.crash

Error: "DEVELOPER_DIR" is not defined at ./symbolicatecrash line 69.
lomodeMacBook-Pro:dftcrashlog lomowu$ export DEVELOPER_DIR=/Applications/XCode.app/Contents/Developer

lomodeMacBook-Pro:dftcrashlog lomowu$ ./symbolicatecrash ./E39F26AE-5B58-48B3-923E-C5D9610C45F7.crash ./MyDemo.app.dSYM > symbol.crash

參考 :
http://blog.csdn.net/qq_26544491/article/details/54909043
http://www.jianshu.com/p/aaa7ae8cab25

相關文章