1. 程式人生 > >iOS解決應用被拒:Guideline 2.5.1

iOS解決應用被拒:Guideline 2.5.1

 一、Guideline 2.5.1 - Performance - Software Requirements被拒原文

APP內部使用了私有API

  • 2018年8月24日 下午11:11
    發件人 Apple
    • 2. 5 Performance: Software Requirements
  • 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.

    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
    .  

二、解決辦法

  1. 檢查一下程式碼裡是否有prefs:root=,
  2. 將類似這段私有api
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"prefs:root=LOCATION_SERVICES"]];

換成下面的

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:UIApplicationOpenSettingsURLString]];