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
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 :)