How to Prevent iPhone apps from being cracked

Source: Internet
Author: User

How to ProtectIPhone AppThe solution to not cracking is described in this article, mainly to explainIphone APPFor more information about the security issues, see this article. Although iPhone program cracking has always existed, due to the well-known reasons such as market and payment methods, the sales volume and cracking ratio of programs or games in some countries or regions are always exaggerated.

Although I don't care much about the use of pirated apps because everyone is willing to use them, it means your apps or games are definitely being used ). However, for reasons such as frequent interaction with the server, the rights and interests that must be provided to the users of the official version should be protected, and financial conditions should be mitigated urgently. We have to exercise restraint on iPhone cracking.

Here is a simple way to talk about it.

The iPhone app is released through iTunes. After downloading the app, you will generate a signature corresponding to your iTunes account. To crack the code, you just need to remove the signature so that it can be installed on every account. However, during the installation process, you still need to cheat iTunes and tell it that the program has been signed.

Where is the cracked signature? By the way, it is the Info. plist file in each application or game. If you have downloaded the cracked iPhone application for research. You will find that all the cracking programs have this key value:

 
 
  1. <key>SignerIdentity</key> 
  2. <string>Apple iPhone OS Application Signing</string> 

The simplest way to protect against cracking is to address this issue.

Open xcode and add the following code where you need to detect the attack:

 
 
  1. NSBundle * bundle = [NSBundle mainBundle];
  2. NSDictionary * info = [bundle infoDictionary];
  3. If ([info objectForKey: @ "SignerIdentity"]! = Nil)
  4. {
  5. // Your code
  6. }

The above Code reads info. plist. If you find the SignerIdentity key, execute your code.

Cracking can never be stopped, nor can it be completely forbidden. In more cases, I hope programmers can be more generous, so that users can use your work as unrestricted as possible. It also calls on all users to buy a genuine copy after use, if they really like it. Because there is no capital income, even a good company will go bankrupt. In the long run, it will only limit the development of the entire industry. In this case, the loss will only be irretrievable to everyone.

Summary: How to ProtectIPhone AppThe content of the solution is not cracked. I hope this article will help you!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.