location_clear
Clear any previously simulated GPS location on an iOS simulator, reverting it to its default behavior. After clearing, location services will no longer report a spoofed position. This is useful for cleaning up after location-based tests or restoring normal simulator operation.
Parameters
Section titled “Parameters”| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
deviceId | string | Yes | — | The UDID of the target simulator (must be booted). |
Usage Examples
Section titled “Usage Examples”Clear simulated location
Section titled “Clear simulated location”“Stop spoofing the location on my simulator”
{ "deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789"}Clear location after geofence testing
Section titled “Clear location after geofence testing”“I’m done testing the geofence feature, clear the fake location”
{ "deviceId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890"}Example Output
Section titled “Example Output”Location simulation cleared.Device: iPhone 16 Pro (F3A1B2C3-D4E5-6789-ABCD-EF0123456789)Related Tools
Section titled “Related Tools”location_set— Simulate a GPS location on the devicesimulator_list— Find simulator UDIDs for thedeviceIdparameter