codenameone / CodenameOne

Cross-platform framework for building truly native mobile apps with Java or Kotlin. Write Once Run Anywhere support for iOS, Android, Desktop & Web.
https://www.codenameone.com/
Other
1.72k stars 409 forks source link

Ios jailbreak bybass detect #3838

Closed shannah closed 2 months ago

shannah commented 2 months ago

Added support for jailbreak bypass detection via new build hint ios.detectJailbreak=true|false

If this build hint is added, then the app will exit if it detects jailbreak.

Note: If you try to debug the app with this option set, it will also exit on start because it detects the debugging process. You'll need to comment out the #define CN1_DETECT_JAILBREAK 1 if you are debugging an app with this enabled.