iOS 8 MKMapView User Location Request Failure

后端 未结 2 1049
长发绾君心
长发绾君心 2020-12-20 01:54

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

2条回答
  •  天涯浪人
    2020-12-20 02:28

    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:

    1. I have deleted my app from the simulator
    2. Under App->Capabilities enabled Background Modes->Location updates
    3. Run the app and let it install on simulator
    4. Allow access, and I was able to locate the user with GPX
    5. Afterwards I disabled Location Updates.

    I don't know why, but this did the trick for me.

提交回复
热议问题