1. 程式人生 > IOS開發 >關於私有api稽核被拒問題定位

關於私有api稽核被拒問題定位

前言

送審被拒,因為呼叫了【prefs:root=】相關api,但自身程式碼沒有相關程式碼,難以定位到底是哪裡出問題

Guideline 2.5.1 - Performance - Software Requirements


Your app uses the "prefs:root=" non-public URL scheme,which is a private entity. The use of non-public APIs is not permitted on the App Store because it can lead to a poor user experience should these APIs change.

Specifically,your app uses the following non-public URL scheme:

prefs:root=touchid_passcode

Continuing to use or conceal non-public APIs in
future submissions of this app may result in the termination of your Apple Developer account,as well as removal of all associated apps from the App Store. Next Steps To resolve this issue,please revise your app to provide the associated functionality using public APIs or remove the functionality using the "prefs:root"
or "App-Prefs:root" URL scheme. If there are no alternatives for providing the functionality your app requires,you can file an enhancement request. 複製程式碼

處理方法

通過終端,CD到工程目錄,然後執行以下程式碼進行搜尋定位

grep -lr "TOUCHID_PASSCODE" * | grep -v .svn | grep -v .md
複製程式碼

就能找到是哪個庫出問題: