Development without 99-knife iPhone (zt)

Source: Internet
Author: User

NowHelloworldIt has been almost a week since the test program was put on touch. Today, it is finally successful, and it is time to shed tears and check countless materials, there is very little information on the Internet, and it seems that the development of the iPhone has been done with 99 knives. No one cares about how to run the test app on the jailbreak iPhone, shitou, just wait for the app to get the shot, and then spend the 99 knives.

 

The following describes how to run helloworld on the jailbreak iPhone:

 

Environment:

  • I'm touch 2.2.1, jailbreak, and iPhone.
  • Max OS 10.5.x, official SDK, xcode 3.1.2
  • If you already have jailbreak, I think you must have replaced it.MobileinstallationNow, it makes no sense for the jailbreak iPhone to replace mobileinstallation. You still cannot run any cracking program. If there is no replacement, search mobileinstallation first.


Note:

  • Operations in some of the following steps may be repeated, and Shitou has not tested which operations are unnecessary, but follow the steps below honestly, otherwise it will be difficult to run.
  • File to be modified, before modificationSwitch to root userFirst, back up the file CP fle. Bak.

 

 

Start:

Modify file/Developer/platforms/iphoneos. Platform/info. plist, There are two parts to be repaired, as shown below:

 

<Key> archs </key>
<String> armv6 </string>
<Key> code_sign_context_class </key>
<String> xciphoneoscodesigncontext </string>
<Key> compress_png_files </key>
<String> Yes </string>
<Key> debug_information_format </key>
<String> dwarf-with-dsym </string>
<Key> embedded_profile_name </key>
<String> embedded. mobileprovision </string>
<Key> infoplist_output_format </key>
<String> binary </string>
<Key> native_arch </key>
<String> armv6 </string>
<Key> plist_file_output_format </key>
<String> binary </string>
<Key> provisioning_profile_allowed </key>
<String> NO </string>
<Key> provisioning_profile_required </key>
<String> NO </string>

<Key> sdkroot </key>
<String> iphoneos2.2.1 </string>
<Key> strings_file_output_encoding </key>
<String> binary </string>

 

<Key> code_sign_context_class </key>
<String> xciphoneoscodesigncontext </string>
<Key> debug_information_format </key>
<String> dwarf-with-dsym </string>
<Key> embedded_profile_name </key>
<String> embedded. mobileprovision </string>
<Key> sdkroot </key>
<String> iphoneos2.2.1 </string>
<Key> provisioning_profile_allowed </key>
<String> NO </string>
<Key> provisioning_profile_required </key>
<String> NO </string>

 

The bold part is the content to be added. Save.

 

Modify another file/Developer/platforms/iphoneos. Platform/developer/sdks/iphoneos2.2.1.sdk/sdksettings. plistAccording to your current development version, enter the specific version number directory, modify all * _ required defined rows in the file, and change the corresponding value, that is, the value of the next row, to No, save and exit.

 

Next we will start to create our own Authorization key. How can we perform this official step? refer to here: Touch me and read the first part of obtaining a signing identity. It is best to enter iPhone developer when naming the key in the first step of creation.

 

Then you can open xcode, create a new project, create a simple helloworld, and then the key is:

SelectProject-> set active SDK-> device-2.2.1

You can also set whether the current development mode (Project-> set active build configuration) is debug or release. The configuration files in two different modes are also different.

 

Under Group & files, right-click your helloworld project, click get info, open the configuration file of the project, and select the build menu,

Scroll to the code signing Part, click code signing identity, and set it to the following:

Any iPhone OS device value is iPhone developer

The subsequent iPhone developer is the name of the key you just created.

 

Scroll to the top, select the show drop-down menu, and select user-defined setting.

Click the lower gear, select Add User-Defined setting, and add two groups of data, as shown below:

Provisioning_profile_allowed No

Provisioning_profile_required No

Close the current configuration window.

 

Expand helloworld-> resources-> info. plist

Edit info. plist and add one:

The value of signeridentity is Apple iPhone OS application signing.

Save.

 

Then you can build the key, Build-> build. In the middle, you will be prompted whether you can use the key you just created. Of course, you are allowed. At this time, the bottom of the xcode window will report the build status, if a red error occurs, it indicates that the operation you just performed is incorrect. A yellow error indicates a warning:

Codesign warning: provisioning is not applicable for product type 'application' In SDK 'device-iPhone OS 2.2.1 '; ignoring...

You don't need to worry about this warning, as long as build succeeded appears,

 

The last step is to put helloworld. app on the iPhone. Here you can use SSH to copy it to the iPhone/applications. However, this method is not successful, even if it is usedLdidI cannot apply for a visa, so I will give up using SSH. You should:

Connect your iPhone or touch first, and then in xcode,Window-> organizerIn this case, your iPhone or touch will appear in the window, click it, and the applications below will show all the apps you have installed now, click the + button, select the compiled helloworld. APP, under helloworld/build/debug-iphoneos, is uploaded to your iPhone/touch. Now you can run helloworld on your iPhone/touch, now you can officially develop your iPhone.

 

SCP-r/directory/where/you/have/stuff/filename root@192.168.2. #:/directory/where/you/want/stuff/filename

SSH 192.168.0.xx-l Root

CD/Applications

Ldid-s XXX. app

Chmod 775 XXX. app

 

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.