I have been trying to move my iOS7 app with MKMapview to support iOS8. However I couldn\'t get the new request for users to share their locations to work properly. I create
Finally I have succeeded to run my gpx file on the simulator. It seems that after installing Xcode 6 the first time, there might be a bug causing for gpx files to simulate. Here is how I overcame the problem:
I don't know why, but this did the trick for me.
I had the same problem a few days ago. The solution was adding the string
keys NSLocationAlwaysUsageDescription
(for [CLLocationManager requestAlwaysAuthorization]
) or NSLocationWhenInUseUsageDescription
(for [CLLocationManager requestWhenInUseAuthorization]
) to your Supporting Files/Info.plist
You can also edit the source code of the Info.Plist
with Right click > open as > Source code and add these lines:
<!-- for requestAlwaysAuthorization -->
<key>NSLocationAlwaysUsageDescription</key>
<string>Explain for what are you using the user location</string>
<!-- for requestWhenInUseAuthorization -->
<key>NSLocationWhenInUseUsageDescription</key>
<string>Explain for what are you using the user location</string>
Hope this helps.