I want to prevent a user to fake the GPS coordinate, there is an app that can be run to fake the GPS if the iPhone is jailbroken. so to prevent this issue I want to check if the user is jailbroken or not, if the user uses the jailbroken iPhone, I will force close the app.
how to do that in Swift ? I can't find it in stackoverflow so far