Geolocation is not working in iOS 8 simulator

元气小坏坏 提交于 2019-12-01 11:26:44

it sounds strange but it really works at least on my Xcode 6 Project. Make also sure to add the required Keys to your Projectname-info.plist file (e.g NSLocationWhenInUseUsageDescription -> as a Key)

Next check your scheme (Product -> Scheme -> Edit Scheme -> Allow Location Simulation) If you are using a gpx file you can also mark it as a default location.

Now you can start your simulator by pressing the run button (play symbol). As soon as your application started you will get notified for the permission.

The final fix now is to go to iOS Simulator -> Debug -> Location and change the location by choosing one out of the list except the custom location. Wait a little and change it back to custom location if it didnt change back by itself.

It worked for me, hope for you too regards Schreda

In iOS Simulator -> Debug -> Location, choose one that will be alright,

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!