简体   繁体   中英

“Access to Location Services denied by user” - CLLocationManager

I'm writing an application which uses CLLocationManager to collect GPS data. Not long ago my simulator began sending me exceptions like kCLErrorDenied without asking confirmation to get the GPS data. Who knows how to fix this trouble?

You cannot test CoreLocation framework in simulator. For more details, see here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM