Howto Install iPhone SDK 2.2.1 on PPC Mac

Posted on September 5, 2009. Filed under: iPhone, Mac |

NOTE: This method is faster and will not require a lot of work! Just follow the instructions and you won’t need to Google yourself  like with the other How Tos.

Are you like me with an old PPC Mac and you want to have fun with the iPhone SDK on it but you just can’t install it? Here’s how to do it:

First, download the OFFICIAL iPhone SDK from Apple’s website. It’s free, and it will just require you to register/login, every thing is free except if you want to become an iPhone developer, then it’s different. If you don’t want to register, you can try to use some logins from this site.

Figure 1

1download

After downloading, open the mountable disk image (DMG) and copy the files (except the About file) into a new folder on your desktop, let’s call it “iPhone SDK PPC”. When the copy is done, right click on the “iPhone SDK” package (.mpkg) and choose “Show Package Contents”.

Figure 2

2show_pack_contents

Then, go in the “Contents” folder, and right click the “iPhoneSDK.dist” file and open it with TextEdit located in your Applications folder or with your favorite text editor.

Figure 3

3choose_fav_text_editor

Search for the “agreedToSLA” function (function agreedToSLA()) at the end of that function, it should normally be written “return false;”, change that to “return true;”.

Figure 4

4spoof_sla_ok

And finally, look for the “isIntel” function (function isIntel()), the first line should be like this:

“var res = (system.sysctl(’hw.byteorder’) == ‘1234′);”

Change the numeral part to “4321” so it finally look like:

“var res = (system.sysctl(’hw.byteorder’) == ‘4321′);”

Figure 5

5spoof_is_intel

Save and quit, load the installer and it should be installing the iPhone SDK now. Once the installation is done, you’ll probably want to compile apps. To do that, go to:

“/Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Specifications/”

Figure 6

6xcode_sim_aspen_sim_archs

Locate and make a backup of the “iPhone Simulator Architectures.xcspec” file (you can simply copy and paste it in the same directory). After backing up replace your old file by this file.

Open up Xcode and you should be ready to go!

NOTE: Planet-iPhones.com and the author of this guide is NOT responsible for any problems caused by following the given steps. They are given as “help” and are NOT guaranteed to work. If you don’t want to follow the steps, or scared to break your computer,  get an Intel Mac.

Reference:

1.http://planet-iphones.com/2009/04/08/how-to-install-the-iphone-sdk-on-a-ppc-mac/

2.http://apokalypsesoftware.com/blog/2009/03/23/130/

3.iPhone SDK 2.2.1 (9m2621a)

http://developer.apple.com/iphone/download.action?path=/iphone/iphone_sdk_for_iphone_os_2.2.1__9m2621a__final/iphone_sdk_for_iphone_os_2.2.19m2621afinal.dmg

4.iPhone SDK 2.2 (9m2621)

http://developer.apple.com/iphone/download.action?path=/iphone/iphone_sdk_for_iphone_os_2.2__9m2621__final/iphone_sdk_for_iphone_os_2.2_9m2621_final.dmg

Advertisements

Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: