Welcome to my iphone development code blog

Welcome to my iphone development code blog

Friday, June 4, 2010

Developing Split View Based Apps for the iPad

An iPhone Developer Program (IDP) membership (costs $99 for Individuals) is required to officially deploy your application on the iPhone – even during the development and testing. Though I have applied for the IDP membership long ago, mine is yet to be approved. Perhaps India is not a listed country for IDP.

Not having an IDP membership will not affect your iPhone development and further testing on a real iPhone. But you would still require a Jailbroken iPhone. You will have to tweak your XCode (Version 3.1.2) and individual project settings – along with the iPhone (Firmware 2.2) – to get the Applications deployed on the phone. Here are the steps. These information were collated by the results of endless queries posted on different forums and by reading various material available on the Web. All the credits are due to their respective owners :)

Common Instructions to Install :-

• Jailbreaking the iPhone requires you to follow the clear instructions given by iClarified. This includes a Video demonstration also. There is no need to Unlock your iPhone. Just Jailbreak should suffice.

• Install the iPhoneTunnel and CyberDuck applications on the Mac

• Install OpenSSH, BossPrefs and Link-Identity-Editor applications using the Cydia application on the iPhone. After installation Reboot the iPhone

• Add source in Cydia (if you have not yet done so), please remember there is a slash (/) at the end of the url Code: http://www.iphone.org.hk/apt/ . Install MobileInstallation Patch version 2.2 in Section “Tweaks”

• Connect the iPhone using the USB Cable to the Mac

• Close the iTunes.

Setting up XCode to Compile and Build the iPhone Application

• Create a Signing Identify on your Mac by following this simple guide from Apple. I suggest you name the Certificate as “iPhone Developer”

• TextEdit the /Developer/Platforms/iPhoneOS.platform/Info.plist file to look the respective portions like:-


2: armv6


4: binary


6: NO


8: NO


10: iphoneos2.2

• Change your own Project Settings by taking [Menu] Project->Edit Project Settings. In the Properties List, find the Code-Signing-Identity and Select the Certificate Name(iPhone Developer) you created earlier.

• Add the following snippet on to your projects info.plist using TextEdit

1: SignerIdentity

2: Apple iPhone OS Application Signing

Transferring the Application Binary to the iPhone over USB

• You may duplicate the following steps using an Ad-Hoc WiFi connection too, of which I am not so fond off!. I prefer the USB.

• Start the iPhoneTunnel Application on the Mac. You should see a respective icon on the Superior Bar at the top of the screen. Click on that Icon and select [Turn Tunnel ON]

• Again click on the same icon on top and select [Tools->SFTP]. The Cyberduck should start automatically. Enter the username as ‘root’ and password as ‘alpine’ in the cyberduck login window.

• Copy the TestApp.app (Your Own App) to the /Application folder of the iPhone using Cyberduck

• Click on the iPhoneTunnel icon and select [Tools->SSH(root)]. Enter the root/alpine credentials at the command prompt.

• At this command prompt enter the following two commands:-

ldid -S /Applications/TestApp.app/TestApp

chmod +x /Applications/TestApp.app/TestApp

• Open the BossPrefs application on the iPhone and choose the “ReSpring” option. This will restart the SpringBoard application to show your application on the Home Screen.

• Enjoy Your App!

If you have a proper Code signing Signature from Apple , you can follow these great instructions to deploy on to AppStore.

No comments:

Post a Comment