Detect iOS jailbreak Code to help detect a possible iOS jailbreak Usage Copy the source into your project print("The device \(isJailbroken ? "appears" : "does not appear") to be jailbroken")