본문 바로가기

iOS

앱스토어 리젝 사유 : "prefs:root="

728x90

 

 

앱스토어에 심사를 맡기고
이틀을 기다려서
앱스토어에게 받은 리젝 사유

 

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

...

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.

 

코드에 "prefs:root=" 를 사용한 것이 문제였다

이전 코드 : 

if let url = URL(string: "prefs:root=WIFI") {
	if UIApplication.shared.canOpenURL(settingsUrl) {
		self.openURL(settingsUrl, result: nil)
	} else {
		if let wifiSettingURL = URL(string: "App-Prefs:root=WIFI") {
			if UIApplication.shared.canOpenURL(wifiSettingURL) {
				self.openURL(wifiSettingURL, result: nil)
			}
		}
	}
}

 

현재 코드 : 

guard let settingsUrl = URL(string: UIApplication.openSettingsURLString) else {
	return
}
if UIApplication.shared.canOpenURL(settingsUrl) {
	self.openURL(settingsUrl, result: nil)
}

 

 

심사 통과~

728x90