Preventing GPS Location Manipulation in iOS Apps

Hi, I've discovered that my app's location can be manipulated using iMyFone. I've searched extensively online for solutions, but haven't found anything effective. Do you have any insights on how I can prevent this manipulation using Swift code? Thanks for your help in advance.

Answered by Scott in 783195022

Have you tried Core Location’s isSimulatedBySoftware (link) property?

Accepted Answer

Have you tried Core Location’s isSimulatedBySoftware (link) property?

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.

Preventing GPS Location Manipulation in iOS Apps
 
 
Q