如何检测应用程序是否在越狱设备上运行?

如何检测应用程序是否在越狱设备上运行?

问题描述:

我刚刚发布了我的iOS应用程序,但我不确定如何让我的应用程序安全不被jailbrakers使用。

I have just released my app for iOS, but I'm not sure how to make my app safe from being used by jailbrakers.

我可以采取措施防止我的应用程序在越狱设备上运行吗?

Can I do something to prevent my app working on jailbroken devices?

您可以通过代码检测应用程序是否在监狱设备上运行。通过这种方式,您可以弹出警报并关闭应用程序。你可以做任何你想做的事。这是一个教程:

You can detect through code that if the app is running on a jail broken device or not. Through that way you can pop up an alert and close the app. You can do whatever you want to do. Here is a tutorial for it:

http://thwart-ipa-cracks.blogspot.com/2008/11/detection.html

这里是一个Stack Overflow post:

and here is a Stack Overflow post:

如何在越狱手机上检测到iOS应用正在运行?

,如果你想要一个完整的解决方案,你可以在tapjoy sdk代码中看到。他们正在检测已越狱的iPhone。这是tapjoy网址 https://www.tapjoy.com/

Also, if you want a complete solution, you can see in tapjoy sdk code. They are detecting jailbroken iPhone. Here is tapjoy URL https://www.tapjoy.com/