“Guideline 2.5.1 — Performance — Software Requirements Your app uses the “prefs:root=” non-public URL scheme, which is a private entity.” error handling

(app store, error handling, non-public URL scheme)

app 上架時卻被apple送審時拒絕 原因是使用不公開的URL Scheme

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:

app-prefs:root=privacy&path=location prefs:root=location_service

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.

可以參考本文進行排錯


App中當沒有給予權限時 設需跳出APP並切換到“設定”的頁面

使用下列的程式碼

因為被APP質疑使用不公開的URL scheme 修改成下面

重新archive到apple store 即可以通過審核


彼得潘的 Swift iOS App 開發教室

學習 Swift iOS App 開發的學生作品集

Peggy Tsai 

Written by

iOS & Golang 隨手記 www.linkedin.com/in/peggytsaifc

彼得潘的 Swift iOS App 開發教室

學習 Swift iOS App 開發的學生作品集