How to set fake GPS location on IOS real device

后端 未结 9 859
盖世英雄少女心
盖世英雄少女心 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:48

    Of course ios7 prohibits creating fake locations on real device.
    For testing purpose there are two approches:
    1) while device is connected to xcode, use the simulator and let it play a gpx track.

    2) for real world testing, not connected to simu, one possibility is that your app, has a special modus built in, where you set it to "playback" mode. In that mode the app has to create the locations itself, using a timer of 1s, and creating a new CLLocation object.

    3) A third possibility is described here: https://blackpixel.com/writing/2013/05/simulating-locations-with-xcode.html

提交回复
热议问题