I want to prevent installation of my iOS app in jail broken devices. Is there any checks that can be done during installation to identitfy if the device is jail broken ? Is there any way to stop the installation if the device is jail broken?
Generally, it break down to two questions:
1) Detection of a jailbreak device.
There are plenty of different methods. None of them is 100% guaranteed to work. Look at this question: How do I detect that an iOS app is running on a jailbroken phone?
2) Taking some actions on a jailbroken device
As @Paulw11 mentioned, you can't stop installation and you can't uninstall.
The common way is just exit from your application (don't provide any useful functionality to a user). However, if your application have very high value, this protection can be removed by somebody who will reverse engineer your application.
Generally speaking, there is no bulletproof protection, but you can make it good enough, so it won't be worthwhile breaking it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With