CLLocationSourceInformation to prevent GPS spoofing

I’m trying to prevent the user from spoofing his current location using third party software, for ex: imyfone anyto or something similar, is CLLocationSourceInformation supposed to detect this behavior or not? I couldn’t find much information about this API.

For the problem cases of concern, have you examined the output of the API? For example, the isSimulatedBySoftware property should only be true when a developer is debugging or testing an app.

I tried using isSimulatedBySoftware and tested with tools like iMyFone/iTools to simulate the location, but the property still returned false. So I’m not sure if I did something wrong. From what I’ve read https://developer.apple.com/documentation/corelocation/cllocationsourceinformation/issimulatedbysoftware , it seems that isSimulatedBySoftware only works when running and debugging with Xcode.

CLLocationSourceInformation to prevent GPS spoofing
 
 
Q