How to set fake GPS location on IOS real device

后端 未结 9 861
盖世英雄少女心
盖世英雄少女心 2020-12-08 04:02

Currently I have to test app and set the different fake GPS locations on real IOS 7 devices. On Android I use \'My Fake Location\'. Unfortunately, I didn\'t find the same ap

相关标签:
9条回答
  • 2020-12-08 04:53

    xCode is picky about the GPX file it accepts.

    But, in xCode you can create a GPX file with the format it will accept:

    And then just change the content of the file to the location you need.

    0 讨论(0)
  • 2020-12-08 04:56

    it seems with XCode 9.2 the way to import .gpx has changed, I tried the ways described here and did not do. The only way worked for me was to drag and drop the file .gpx to the project navigator window on the left. Then I can choose the country in the simulator item.

    Hope this helps to someone.

    0 讨论(0)
  • 2020-12-08 04:58

    Working with GPX files with Xcode compatibility

    I followed the link given by AlexWien and it was extremely useful: https://blackpixel.com/writing/2013/05/simulating-locations-with-xcode.html

    But, I spent quite some time searching for how to generate .gpx files with waypoints (wpt tags), as Xcode only accepts wpt tags.

    The following tool converts a Google Maps link (also works with Google Maps Directions) to a .gpx file.

    https://mapstogpx.com/mobiledev.php

    Simulating a trip duration is supported, custom durations can be specified. Just select Xcode and it gets the route as waypoints.

    0 讨论(0)
提交回复
热议问题