here is simple method to find jail breaking devices in swift.

Hopefully you checked on starting so put on starting view controller and call this function, if swift-

func DetectJailBreak() {   
let url = URL(string: "cydia://package/com.example.package")
if let url = url {…

--

--