To run the example project, clone the repo, and run pod install from the Example directory first.
iOS 12.0+
if ([PPJailbreakDetection isJailbroken]) { /* ... */ }
float score = [PPJailbreakDetection jailbreakProbability]; // 0.0 ... 1.0
if JailbreakDetection.isJailbroken() { /* ... */ }
let score = JailbreakDetection.jailbreakProbability()
Detection is heuristic and can be bypassed; use it as one signal among others. The simulator always reports "not jailbroken".
.package(url: "https://github.com/ppaulojr/PPJailbreakDetection.git", from: "2.0.0")
PPJailbreakDetection is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "PPJailbreakDetection"
ppaulojr, ppaulojr@gmail.com
PPJailbreakDetection is available under the MIT license. See the LICENSE file for more info.