info.plist « Tonny Xu
...Life is like a box of chocolates,
you never know what you’re gonna get...
» info.plist «

iPhone app developers are facing their hard worked app appears on the pirate app web site the day after it appears on iTunes. So you must want to protect your app as I do, right? But how? What’s the best way to protect your apps?

Here is the best practice by far I know. And it’s really simple and easy to do with. As far as Doskoi know, every hacked iPhone app need to add a key to the info.plist file. They need to add this:

SignerIdentity
Apple iPhone OS Application Signing

So it would be easy for us to detect whether your app was pirated or not. Simply using the following code to protect your apps.

 NSBundle *bundle = [NSBundle mainBundle];
 NSDictionary *info = [bundle infoDictionary];
 if ([info objectForKey: @"SignerIdentity"] != nil)
 {
 // Add your anti-pirate code here.
 }

Hope it will help you.

Doskoi’s Lounge » iPhone软件的破解保护.

Comments