Reputation: 488
Is there any way to simulate a location on an iOS device without having to run Xcode
with gpx
files to do so? I'm fluent in swift and objc and would like to make an app simulate a location without running Xcode. The down side is that when you want to simulate a location without being connected to Xcode
the app does not continue to simulate the location. Any help would be greatly appreciated!
Upvotes: 0
Views: 453
Reputation: 6484
Sometimes I use a quite ugly hack to do that.
When you have your device connected to the Xcode while simulating location, just remove the lighting cable without killing an app directly.
The app will crash but when you relaunch it you will see it shows the same simualated location despite the fact it's no longer connected to the Xcode.
Note that this is not an elegant approach and to make your device location services work properly again, you have to run an app from Xcode on your device and explicitly set Debug/Simulate Location/Don't Simulate Location
Upvotes: 1