开发者

Forcing app to exit via a crash in IOS

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜