前幾天在項目審核中,項目被拒絕,拒絕原因如下:
Guideline 2.1 - Performance - App Completeness
Your app still crashed on iPad running iOS 13.1.3 on WiFi when we:
Tap on login button.
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 that it runs as expected.
Resources
For information on how to symbolicate and read a crash log, please review Tech Note TN2151 Understanding and Analyzing Application Crash Reports.
告訴我點擊“登錄”按鈕的時候會崩潰!!!
並且附帶了幾個.txt的文件,里面都是16進制的崩潰日志
是這個樣子的,翻來覆去的找解決方法,原來是要把返回的16進制轉化為符號化讀取崩潰日志的信息
這里有解析creashlog的詳細教程,根據教程就能解析出來creash崩潰的位置
鏈接:https://www.jianshu.com/p/3caccc287346(iOS之解析審核Crash Log方式(一))
https://www.jianshu.com/p/74052e371cb8(iOS之解析審核Crash Log方式(二))
這是一個漫長的過程,我就沒有詳細的去get這個技能
在反復查閱下,突然發現Xcode里有這樣的一句提示:
[Assert] Access to UITextField's _placeholderLabel ivar is prohibited. This is an application bug and will become a hard crash in a future release
卧槽!!!
原來是_placholderLabel這個方法不能用了。在未來的版本可能會引起崩潰!!!!
鏈接 https://blog.csdn.net/a18339063397/article/details/97938699(這個是替換的方法)UITextField 的私有屬性 _placeholderLabel 被禁止訪問了
請各位iOS 開發工程師仔細的檢查一下自己的項目中是否會含有這樣的方法
如果有請替換掉,不然蘋果審核是真心過不去啊!!!
以上均為自己所遭遇的真實填坑
希望可以對大家有幫助。謝謝