How to Check GEO Fencing or Location based apps in simulator iOS Swift



For Location-based apps device(iPhone or iPad) only possible we think but it had another one way to test the location-based apps in iOS.First, we have to create an empty file with the extension of .gpx
Then we have to put the latitude and longitude values in that file and give the location name in that.

For Example
<?xml version="1.0"?>

<gpx version="1.1" creator="Xcode">
    <wpt lat="37.0902" lon="95.7129">
        <name>Fence 1</name>
    </wpt>
</gpx>


The above I had put my required lat and long values and set the name as Fence 1.After running the project in the simulator you have to select the location in the menu.Go to Debug->Simulate Location->then select your file(fence1.gpx) in the menu.The simulator will show the location in the map.We can add more locations repeating the above steps and check the location based updates in the simulator.In Apple Maps or google maps, we can use the above scenario for the location based process.

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift