开发者

Forcing app to exit via a crash in IOS

开发者 https://www.devze.com 2023-03-24 13:01 出处:网络
I can exit apps a few valid ways system(\"killall SpringBoard\"); close(0); But I want to force the app to exit when i detect its been pirated. Its very easy and possibly even automated to remove c

I can exit apps a few valid ways

system("killall SpringBoard");
close(0);

But I want to force the app to exit when i detect its been pirated. Its very easy and possibly even automated to remove commands like this with the cracking tools. If I caused the app to exit via a crash from the invalid selector error would it cause the app to fail the review process from Apple?

开发者_如何学编程

Obviously it wont crash during testing if I implement the crack protection properly.

Many Thanks, Code


If you correctly put the pirating detection in, Apple won't even notice that there is anything different about your app when you submit it for review. Maybe instead of crashing your app you would like you show an alert view that says "Your device is jailbroken. You cannot use this app until you restore your device with iTunes."?

0

精彩评论

暂无评论...
验证码 换一张
取 消