Determining if GPF file in use

I'm looking for a way (hopefully with a compiler directive) - in debug mode as well as in my UITests - to determine if a GPX file is being used. You use a GPX file for simulating location - it is set within the scheme settings under "Core Location - Allow Location Simulation".

Is this possible?

Answered by Developer Tools Engineer in 789226022

We are aware of a gap around knowing whether the device's current location is being simulated.

We would greatly appreciate if you could file a feedback indicating your interest in seeing this become a feature.

Separately, we recently added an API to get and set a device's simulated location during a UI test: https://developer.apple.com/documentation/xctest/xcuidevice/4111083-location

Thanks!

https://feedbackassistant.apple.com/

We are aware of a gap around knowing whether the device's current location is being simulated.

We would greatly appreciate if you could file a feedback indicating your interest in seeing this become a feature.

Separately, we recently added an API to get and set a device's simulated location during a UI test: https://developer.apple.com/documentation/xctest/xcuidevice/4111083-location

Thanks!

https://feedbackassistant.apple.com/

Determining if GPF file in use
 
 
Q