ios app store rejection - Your app uses the “prefs:root=” non-public URL scheme

前端 未结 7 845
礼貌的吻别
礼貌的吻别 2021-01-03 23:07

I recently uploaded a new version of my app to itunes connect. My app got rejected with this note

Your app uses the \"prefs:root=\" non-public URL s

7条回答
  •  生来不讨喜
    2021-01-03 23:47

    I had the same problem and I resolved it as following:-

    Step 1:- Search for the Prefs:root in your app then you will find something as follows:-

     if let url = URL(string: "App-Prefs:root=Privacy&path=LOCATION") {
     // If general location settings are disabled then open general location settings
        UIApplication.shared.openURL(url)
     }
    

    Step 2:- Change the above code section with the following one:-

     if let url = URL(string:UIApplicationOpenSettingsURLString) 
     {
        UIApplication.shared.open(url, options: [:], completionHandler: nil)
     }
    

    Now rebuild your app and resubmit to the App Store with no worries :)

提交回复
热议问题