Skip to content

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.

ParameterTypeRequiredDefaultDescription
deviceIdstringYesThe UDID of the target simulator (must be booted).

“Stop spoofing the location on my simulator”

{
"deviceId": "F3A1B2C3-D4E5-6789-ABCD-EF0123456789"
}

“I’m done testing the geofence feature, clear the fake location”

{
"deviceId": "A1B2C3D4-E5F6-7890-ABCD-EF1234567890"
}
Location simulation cleared.
Device: iPhone 16 Pro (F3A1B2C3-D4E5-6789-ABCD-EF0123456789)