• On BNET: Why Domino's admitted its pizza sucked
advertisement
March 10, 2008 12:00 AM PDT

Surprise, iPhone SDK also works on PowerPC Macs

by Ben Wilson
  • Font size
  • Print
  • 18 comments

Though Apple states that the iPhone software development kit requires an "Intel processor-based Mac running Mac OS X Leopard," developers have found that -- with a little leg-work -- the SDK also runs on PowerPC-based Macs.

By default, the iPhone SDK package available free from Apple's site will run on a PowerPC-based Mac but omit the iPhone SDK-related files, installing only Xcode 3.1 beta and a series of other files. This routine is easily circumvented via the shareware tool Pacifist, which can be used to force an installation of the entire SDK package on PowerPC-based Macs.

Follow these steps:

  • Drag the iPhone SDK package onto the Pacifist icon
  • Select the top entry, "Contents of iPhone SDK"
  • Click the "Install" button in the upper-left corner and enter your administrator credentials

The "Aspen" Simulator, which is a Universal Binary, will properly launch and emulate iPhone applications on PowerPC-based Macs.

Windows users are still out of luck when it comes to the official SDK, though developers are currently seeking alternative, Windows-based deployment methods.

Feedback? info@iphoneatlas.com.

Recent posts from iPhone Atlas
Words With Friends: Like Scrabulous for iPhone!
How Epic fit the Unreal Engine into the iPhone
Apple releases iPhone OS SDK 3.2 beta 4 for iPad
iPhone 4G: 25 most-wanted features
Klipsch Image X10i: Ideal earphones for the iPod Classic
Eliminate's 3G multiplayer: How'd they do that?
EFF knocks iPhone developer license agreement
Attack of the iPhone clones
Add a Comment (Log in or register) (18 Comments)
  • prev
  • next
by dhirajpiste1 March 10, 2008 6:13 PM PDT
COOL! Thanks Apple for making it MORE DIFFICULT for *YOUR* customers... Geez.
Reply to this comment
by bstevens March 10, 2008 9:48 PM PDT
It isn't working on my G5. Pacifist gives me the error message "The disk image ?iphone_sdk.dmg? could not be mounted."
Reply to this comment
by jimich March 11, 2008 2:08 AM PDT
is it working on ppc with 10.4?
I cannot update to 10.5 on my ibook G4 (lack of ram)
Reply to this comment
by iamwatson1 March 11, 2008 8:02 PM PDT
Posted by bstevens
10 March 2008 @ 9pm

It isn?t working on my G5. Pacifist gives me the error message ?The disk image ?iphone_sdk.dmg? could not be mounted.?

You need to mount the disk image...then drag the one package called iPhone SDK (it looks like a box, thats why its a package) to the pacifist icon in your applications folder. Dont worry about the folder called "Packages" the main package will install all of those.

It will work
Reply to this comment
by bstevens March 12, 2008 7:56 PM PDT
To: iamwatson1

If I double click on the iphone_sdk.dmg I get the message:

Warning

The following disk image failed to mount

iphone_sdk.dmg not recognized


What can I do to fix this?
Reply to this comment
by NotSoFast March 16, 2008 8:54 AM PDT
So, I followed these instructions to the letter and everything seemed to go smoothly... except that when the process was finished, the SDK package bundle contents had been installed at "/" rather than at "/Developer". Now I have two sets of the IPhone SDK installed, my original attempt using Apples installer which put everything in "/Developer" but doesn't work on PPC, and now this attempt at "/" which is probably missing a bunch of stuff it expects to have already been installed...

I'm not sure if there is an easy way out of this mess. Is there an un-installer?
Reply to this comment
by NotSoFast March 17, 2008 7:32 AM PDT
I tried the uninstall directions described in the iPhone SDK "About" file.
At the "/" directory, I typed:

sudo /Library/uninstall-devtools --mode=all

After all the package analysis was complete, the following lines were printed. Not much changed. I still see Documentation, Examples, Extras, Headers, Makefiles, Platforms, Private, SDKs, Tools, etc in my root directory.

Removing devtools files...
Removing generated files...
Removing cached syms...
Removing Java 1.4 reference docs...
Removing Java 1.5 reference docs...
Removing generated directories...
kextunload: unload id com.apple.iokit.CHUDUtils succeeded (any personalities also unloaded)
kextunload: unload id com.apple.iokit.CHUDProf succeeded (any personalities also unloaded)
kextunload: unload id com.apple.iokit.CHUDKernLib succeeded (any personalities also unloaded)
Removing empty devtools directories...
Finished uninstalling shared non-relocatable developer tools content.
IMPORTANT: If you are going to install a previous version of the Developer Tools, be sure to restart the machine after installing.
Finish time: Mon Mar 17 06:35:02 PDT 2008
ERROR: Uninstaller script must be located in a folder named /Library
Reply to this comment
by Imtzo March 20, 2008 12:47 PM PDT
I experienced the same problem as NotSoFast (contents of SDK spammed into root folder, not /Developer), with the same results from the uninstaller. Note that the error at the end actually has a "<developer-folder>" before /Library. Ironic, isn't it? Looking forward to reinstalling Leopard tonight.
Reply to this comment
by gigeamircearaul March 28, 2008 5:30 PM PDT
Same problem here. At least I managed to install the SDK completely (in the right place) without using Pacifist, fully working on my PowerBook G4. My root partition is still spammed with 5 gb of redundant crap for following this "Tip", but thats why i decided to let others know there's another better way of getting it to work:

1. Make the iPhone SDK.dmg read/write-able with Disk Utility using convert -> to read/write.
2. Mount the R/W dmg.
3. You need to delete some unneccessary file so that you can modify the installer config file, because the image is completely full. I choose the PDF in the root of the dmg.
4. Modify /Volumes/iPhone SDK/iPhone SDK.mpkg/Contents/iPhoneSDK.dist :
- Line 71 ( in function agreedToSLA() ) - modify "return false;" to "return true;"
- Line 81 ( in function SDKPresent() ) - modify "return false;" to "return true;"

That's it. Now you can double-click the iPhone SDK package and install as usual. The Aspen SDK will show up and get installed.
Reply to this comment
by nhm April 8, 2008 10:59 PM PDT
Thanks, gigeamircearaul. I had a little trouble editing the iPhoneSDK.dist file even after deleting some stuff, so I modified your first step a bit. I mounted the original SDK dmg file and then used Disk Utility to make a new empty read/write dmg file and mounted that. I then used the Disk Utility "Restore" function to copy the original SDK disk to the new one and edited the file on the new one.
Reply to this comment
by Michael_G._James_952 May 12, 2008 2:07 PM PDT
In the 5th iPhone SDK release you'll also need to modify the isIntel() function in the iPhoneSDK.dist file.

I found that changing the '1234' in the test for the hardware's byte order to '4321' will enable the iPhone SDK option when the installer is run.
Reply to this comment
by marx2000 June 14, 2008 2:28 PM PDT
hello thanks for your posting at least i got the sdk installed with pazifist
on my miniMac ppc, but regarding to the " quicktstart manual "

https://developer.apple.com/iphone/library/documentation/Xcode/Conceptual/xcode_quick_tour_iphoneos/020-Creating_the_Project/chapter_3_section_1.html

i can?t choose the " Cocoa touch empty application" button

http://farm4.static.flickr.com/3017/2578919862_0eb05e7cb4_o.jpg

simply not there . Shoud i try the above explained workaround ?

thanks a lot
Reply to this comment
by zeta32 April 26, 2009 8:07 PM PDT
Hi people I am having a problem with my SDK .

I am reading a book and how to develope iphone applications but when i save everything and run a simple code. i get these "No architectures to compile for (ONLY_ACTIVE_ARCH=YES, active arch=ppc, VALID_ARCHS=i386)."

i have a power pc install the sdk using these tutorial.
What can i do ??
Reply to this comment
by nikos101 April 27, 2009 8:47 AM PDT
Hi, in
4. Modify /Volumes/iPhone SDK/iPhone SDK.mpkg/Contents/iPhoneSDK.dist :

You can't do this in the newest sdk download as all the extensions end with pkg

iphone_sdk_for_iphone_os_2.2.19m2621afinal
Reply to this comment
by elicit77 May 31, 2009 12:10 PM PDT
its been renamed, you need to select iPhoneSimulatorPlatform.pkg

The .pkg extension type shouldn't affect the simulator installation.

Word is born. :)
by Mahrodg June 19, 2009 7:14 PM PDT
Anyone ideas how to uninstall this? I have the same problem "NotsoFast" described. Is there any way to undo this??
Thanks
Reply to this comment
by usernamefatigue January 1, 2010 8:35 PM PST
Apple simply wants you to either buy a new PowerMac, or go to [s]H[/s](D)ell. I'm going to build a Hackintosh within the still-lovely shell of my capable, 3-years young, but orphaned and ever-more-beleaguered G5.

Once the transplant is done, I'll press on learning cottage-industy-level application-crafting, in hopes that the iTunes iRon Curtain will one day collapse- and with hope that ruthless corporatism won't force all players to be compliant toadies, in all of our endeavors. Of this I'm certain: I will NOT buy another new G5 when I can build up my own for 1/3 price or less.

At least we can learn portable Unix and Obj-C skills, those of us learning iPhone app development. Tablets will be another tremendous boost for Apple, and Apple Inc may become more smug than ever- but if they continue to rot from the core, more open and customer-friendly competition will (I trust) eventually replace them- a more open and vigorous market will emerge, with an unprecedented variety of hardware, developers and applications- enhancing all our lives in as-yet unimagined ways.

I've struggled enough, and wasted enough time trying to keep the iPhone SDK running on this platform. Best of luck to those more patient than I.
Reply to this comment
by cpillo20 February 5, 2010 9:13 PM PST
can anyone make a video in youtube for all these steps because i followed all the steps and my ibook g4 doesnt cannot run the complete iphone sdk
Reply to this comment
(18 Comments)
  • prev
  • next

Search iPhone Atlas

advertisement

About iPhone Atlas

iPhone Atlas helps you navigate the ins and outs of Apple iPhone ownership with how-tos, troubleshooting information, news, reviews, and more. Got a tip? Want to contact us? E-mail iphoneatlas@cnet.com.

Add this feed to your online news reader

iPhone Atlas topics