Don’t Have An Intel Machine But Want To Code For The iPhone Anyway? Follow These Steps
I’ve got an Intel iMac and an older iBook G4, and before I read the “fine print” about the SDK only working on Intel machines, I had already started the download to my iBook (gimme a break, I was in bed!) After it downloaded I opened the main iPhone SDK package and noticed that no iPhone-specific things were listed under what it was about to install. I let it run its course, opened up Xcode, and just as I thought, it didn’t list the iPhone anywhere under available platforms, no Cocoa Touch application templates, etc.After doing some quick folder surfing, I got it to work: the SDK lets me develop for the iPhone, the emulator runs flawlessly, and all the documentation is available. Here are the steps I took:
- Once you’ve installed all the packages you’re allowed to install, go back into the mounted DMG and go into the Packages folder.
- See all the Aspen packages at the top? Double-click on them and install them, one at a time.
- You should now have a Platforms folder in your default installation directory, which for these packages is probably at the root level of your hard drive. Make sure it’s there.
- In that Platforms folder is where all of the iPhone-related SDK stuff was installed. Take everything in that folder and put it into the /Developer/Platforms/ folder in your main Developer directory.
- Restart Xcode (if you had it open) and you should be greeted with new choices for iPhone applications as well as the AspenSimulator device to test your code on.
The only oddity I’ve encountered so far is that you get 1 Warning when you build, because the target architecture doesn’t match (PPC vs. i386) but that’s to be expected. Also I don’t know if the certificates that Apple hands out once you’ve paid your $99 fee will work perfectly with this system, so for now I’d simply use it as a development environment and plan to get an Intel box running with the SDK sometime between now and June’s AppStore launch. It should be noted that I’ve got Leopard running on the iBook. But, it works!


Bob Jones # —
Ouch, 512MB that’s brutal.
Simon # —
Yes, great Mike! I don’t have the money for an intel Mac yet so this is a great help. Why would Apple do this?
So who's had a poke around the SDK - Page 3 - MacTalk Forums # —
[…] G5s. It installs XCode 3.1 (beta) but no sign of the “iPhone” components. A way has been found: 3by9
CajunLuke # —
It appears that it also works with 10.5.1 - the docs insist that it only works on 10.5.2.
Rob Meyer # —
You are my hero!
Developing on my dual G5, with 30″ display, in my office, is much nicer than on my wife’s MacBook in the kitchen.
Adam Leonard # —
Wow, works great for me too.
I’m actually pretty surprised, I thought the iPhone ARM processor ran as little endian. But yeah, it looks like they were still able to make the simulator a universal binary. Cool!
Thanks. Now I can start developing
Michael D # —
Damn, there goes my excuse for replacing my G4!
Seriously, this is great news. Thanks for sharing it.
Joe # —
Works for me on my iBook G4. Thanks!
Note that steps 4 and 5 mean, essentially,
cp /Platforms/* /Developer/Platforms/
Chris # —
Thank you. Having wrote FiveDice, and a couple other small things with the dev kit, I have begun rewriting for the SDK. I was getting a little cramped on the MBP screen when I have the big G5 and monitor in the office. This is wonderful…
Macpro.se - iPhone SDK:t p # —
[…] Att iPhone SDK:t inte fungerar p
kak # —
I don’t get the ‘flipping’ and ‘twisting’ to work in the aspen simulator on my iBook g4. Is this connected to the fact that I don’t have paid my $99. Are their more things that will be unlocked once the fee is paid?
Don’t Have An Intel Machine But Want To Code For The iPhone Anyway? Follow These Steps at Joakim Andersson # —
[…] Don’t Have An Intel Machine But Want To Code For The iPhone Anyway? Follow These Steps […]
Richard # —
Wow - you just saved me about £1000. Thanks!!
John Muir # —
Thanks.
Now let’s see how my 1st generation 867 MHz 12″ PowerBook likes it. Half the CPU but double the memory!
I’m in the same boat as you by the way: trusty old PPC laptop but an Intel desktop. Any showstoppers on the notebook can always be overcome back at my desk.
iPhone SDK works on PowerPC Macs, sort of | Latest iPhone, Mac, Apple news # —
[…] 3by9’s website has the full details on how to get the SDK running on your PPC Mac. […]
iPhone SDK works on PowerPC Macs, sort of | PC and gadgets blog MyPCProblems.info # —
[…] the iPhone. There is no word yet on how the $99 digital certificate will work on the PowerPC Macs. 3by9’s website has the full details on how to get the SDK running on your PPC Mac.[original post by […]
Made On My Mac – iPhone SDK hacked already! # —
[…] is only supported on Intel based Macs). For full information on how to do this visit this site: http://3by9.com/85/So… what is going to be hacked next? Share and Enjoy: These icons link to social […]
BlogTrage » iPhone SDK works on PowerPC Macs, sort of # —
[…] 3by9’s website has the full details on how to get the SDK running on your PPC Mac. […]
JA # —
Thanks, mate! I’ll use this until the Mac Mini is updated (or the MBA gets FireWire ;-)) - then I’ll get an Intel machine anyway. Until then I’ll do it this way!
tony # —
G4, G5, those processor were lame anyways slow as hell could not top the same clock speed as an intel at those Hertz anyway they were still slow processor. Take my advice go get a new mac.
Rob Meyer # —
The flipping seems spotty even on intel. I think the application delegate needs to explicitly declare support for rotation via the events, although I haven’t checked that. Springboard in the sim won’t rotate, and some of the sample apps don’t (even those that seem like they should), but I did see one that would rotate (can’t remember which).
macFanDave # —
Mike,
You are a fine human being!
I had to borrow my father-in-law’s MacBook for a couple of days to check out the iPhone SDK, because I was led to believe that my Dual 2GHz PowerMac G5 (with dual monitors and 1.5 GB of RAM, no less) was not good enough.
I’ve been considering adding a Mac mini to my setup with a KVM switch that I already have, but then I got caught up in the rumor that the mini is about to be upgraded with Penryn chips. Sadly, the only feature that is driving this purchase is that the mini includes an Intel chip, period. My G5 is still good enough (even though some irritants are cropping up, like limited features in PhotoBooth), and I really want to buy a computer when it really provides a whole new level of performance.
Thank you for helping me put off my next buy. As June approaches, if I feel I’m going to have something worth distributing (either for free or for some dough), I’ll pay the $99 and get a Nipple (Intel-in-Apple) at the last minute.
Thanks, Mike, for your work and thanks for sharing your fix!
Pete # —
But will the compiled code actually run on a real iPhone?
scott s # —
thanks, gret to have the sdk finally on my ppc. am I missing the iphone interface builder or has it not been released yet?
Jeff # —
It’s actually the view controller, not the app delegate. Look at CreateViewController.m in the WhichWayIsUp sample application to see how they enabled the flipping. I’d just tell you what they did, but that darn NDA, you know…
blog tech news » iPhone SDK works on PowerPC Macs, sort of # —
[…] 3by9’s website has the full details on how to get the SDK running on your PPC Mac. […]
Dave Marcoot # —
Awesome! Thank you so much! I had downlaoded the SDk to my G4 mac and had been waiting for a work around like this to come out.
Troy # —
Why would Apple do this?
Time To Market, no doubt
6-4 Dumb Man » iPhone SDK works on PowerPC Macs, sort of # —
[…] 3by9’s website has the full details on how to get the SDK running on your PPC Mac. […]
Chris L # —
It does seem to work! Although I have managed to crash Mobile Safari - I do not know if this is a PowerPC problem specifically.
iPhone SDK მუშაობს PowerPC-ზე? # —
[…] iPhone SDK-ს PowerPC-Mac პლათფორმაზე გაშვების პროცედურა აღწერილია ამ გვერდზე. […]
howardh # —
I tested it, it works great! Thanks for the great tip.
This helps my Dual-Core G5 stay usable for another year or so.
As for Apple, its annoying see that they want to force people to buy an Intel box, but there is so much usable PPC hardware out there still. Even if they don’t want to ‘Support’ the PPC version of the SDK, I hope they leave it there in the final release.
迷客科技 » Blog Archive » iPhone SDK goes PowerPC, jealous of Intel processors # —
[…] of not being able to have your applications digitally signed and certificated by Apple. Mike has written a post describing how to install the SDK, which can be found on […]
John Muir # —
Up and running on my five year old PowerBook: just as good as a modern Intel. Fine stuff! That little emulator is light.
Ben Reubenstein # —
Missed it by… THAT MUCH. Working on my new MacBook Pro. Anyone want to buy a PowerBook G4?
Harry Smith # —
@tony: The G4 and G5 architecture is far and away better than Intel. That’s why Intel have been working to make their architecture more like a RISC processor than the other way around.
Steve Sims # —
Seems to work quite nicely.
Only glitch I’ve found is that XCode 3.1’s preferences don’t work. Trying to open them up results in an exception which gets caught, so it doesn’t actually crash, but the prefs can’t be changed. I suspect this may be why PowerPC isn’t officially supported.
iPhone Updates - Apple iPhone Software, iPhone Hardware, iPhone cables, iPhone cases, iPhone News # —
[…] 3by9’s website has the full details on how to get the SDK running on your PPC Mac. […]
[Link] Due link veloci veloci « Autoritratto con mele # —
[…] 3by9 - Don’t Have An Intel Machine But Want To Code For The iPhone Anyway?: In questo articolo viene descritta la procedura per utilizzare lo SDK di iPhone anche su macchine con processore PowerPC (lo SDK, per ora, è ufficialmente solo per Mac Intel). […]
Caffeinated Cocoa » Blog Archive » iPhone sweetness and Web Importer not-so-sweetness # —
[…] it is so cool! I was able to get it working on my non-intel iMac thanks to this. I haven’t looked at it that much, but from what I have seen and tried, it looks really […]
El SDK del iPhone corre en PowerPC « KoldoMac # —
[…] mi equipo para que veáis que es cierto y animar así a los usuarios que tengan un mac PowerPC y el link donde ví que se podía […]
3by9 » 3by9 Podcast #15 # —
[…] about this 3by9 entry that got on Daring Fireball, MacRumors, and Arstechnica, but failed to get any Digg or Reddit […]
iPhone SDK σε PPC — iPhone Hellas # —
[…] From 3by9.com […]
Jason Sims # —
Sweet! Works perfectly on my PowerBook G4 (1.67 GHz, Oct 2005). The SDK looks great so far.
Verwirrung um iPhone-Entwicklerprogramm | # —
[…] läuft auf Mac-Rechnern mit Intel-Prozessor (mit einem Trick eingeschränkt auch auf PowerPC-Maschinen) und bietet unter anderem einen Simulator, mit dem man seine iPhone-Anwendung […]
Zapfers-Welt » Blog Archive » iPhone-sdk auch auf PowerMacs # —
[…] ich dann die Antwort: “you need an intel machine” Nun hat zum Glück Mike Rundle von 3by9.com eine Lösung gefunden. Sogar der iPhone-Emulator läuft auf seinem iBook […]
iPhone SDK auf PowerPC-Rechnern » MACNOTES.DE # —
[…] hatte man aber in Cupertino doch Angst vor der eigenen Courage, denn mit einem Trick lässt sich das SDK doch auf PowerPC-Rechnern installieren und benutzen. Wir haben es ausprobiert […]
Marcus # —
Thanks Mike!
you just saved me a a lot of time and money
: )
USITBAR.COM » Blog Archive » Dragging the iPhone SDK onto a PowerPC # —
[…] Rundle has found the way to get it to work. It’s not supported, but it […]
Hrissan # —
Unfortunately it is not going to work on my iBook G3…
It seems I should buy a faster notebook at last.
Cannot find XCode # —
I’m an absolute Mac OS newbie… I followed all of your steps but I cannot find XCode itself. It’s not in Finders Application folder nor does a full text search yield any results.
How can I start XCode?
The install went smooth without any error messages…
GuyC # —
Thought similar method might work on ppc for the ‘iPhone SDK and Xcode 3.1′ as released today, the version that includes the interface builder.
The extra packages to install are no longer prefixed with Aspen but now with iPhone (iPhoneDocumentation.pkg and so on).
Installed them one by one and then copied the contents of /platforms into /Developer/Platforms.
However on building the Cocoa Touch List sample I get the error message ‘no architectures to compile for (ARCHS=ppc,VALID_ARCHS=i386).
Any thoughts anyone ?
Adam # —
has anybody had any luck installing the second beta of the SDK on a G4? I have the first beta running just fine on my iBook G4 w/ 10.5.2 (thanks to Mr. Rundle), but wanted to have access to the interface builder in beta 2. Does interface builder require an Xcode update - or anything new for the aspen simulator for that matter. Either way I’m gonna tinker with it after work - so i’ll post results if i have any - but I’d prefer to have an idea before i dive in.
Tom Bradford # —
Adam, I’ve played a little bit with Beta 2 and have gotten the Simulator builds to work under PowerPC, but unfortunately can’t get the actual Simulator to not core upon launching. I’ve written about it at my blog.
http://www.tbradford.org/2008/03/iphone-sdk-beta-2-possible-ppc-fix.html
Matt B. # —
After spending some time messing around, I successfully got Apple’s Sample Apps running on my iBook G4 with the new Second Beta of iPhone SDK (w/ Interface builder).
The first four steps are very similar to the original method…
1. After downloading the iPhone SDK Beta 2, run the installer and let it install what it will let you.
2. Open the “Packages” folder from iPhone SDK disk image, and manually install all of the packages with the “iPhone” preface.
3. After installing all of the iPhone packages, there should be a “Platforms” folder in the root of your hard drive (or where you chose to install them). Move all the contents of this folder to the /Developer/Platforms folder on your hard drive.
4. Launch Xcode, and you should be presented with the iPhone options as before.
***This is the new material below***
5. After opening one of Apple’s sample projects or creating your own, right-click (or control-click) on the name of your project under the “Groups & Files” pane on the left side of the development window, and select “Get Info”
6. In the info window, select the “Build” tab.
7. Under the Architectures section, and the Architectures sub-category, select “Native Architecture of Build Machine” for the value.
8. Under the “Valid Architectures” sub-category, double-click the value area (should say i386).
9. In the window that appears, click the + (add) button and type “ppc” in the line that appears. Click ok.
10. Build and go your app and it should launch in the simulator.
Note: I am thinking this may only work for testing apps on the build machine, not actually deploying apps, since we are changing the app architecture to powerpc, so it probably would not run on an actual iPhone.
Hope this helps, it worked for me.
Matt B.
Matt B. # —
Important note on my last comment– Before step 7, “Simulator” may need to be selected for the value of “Base SDK” before continuing.
Tom Bradford # —
Correction to my last comment… the simulator was coring because I had an incompatible build of sqlite in my /usr/local/lib directory that was being prioritized in my LD_LIBRARY_PATH… You’d likely not have run into the same problem. All works well!
Tom Bradford # —
Deployment will cross-compile to arm thumb code no matter what
Mark # —
Thank you all for figuring this out. I’m excited to try it out on my PB
Cheers.
olof # —
Ok, I downloaded this a bit too late. The new version (with the GUI elements) can be installed just as easy. They are not called Aspen any more but “iPhone”. On the other hand the compiler does not give a warning but an error instead. Sadly. Anyone knows an easy way to make it treat errors as warnings?
(eye-an) # —
Thank you again, however the new SDK release didnt load the iPhone interface builder… Can I just do the same method with the new one?
Ralf # —
Followed the steps however, once I’ve installed the updated SDK I no longer have a Project type of iPhone… When I select File > New Project all I get is MacOS projects. Any help? Any idea?
No iPhone project type offered anymore # —
Since I installed the latest update Xcode does no longer offer me the iPhone project type, only MacOS ones…
I ran ./uninstall-devtools –mode=all
as described in the iPhone SDK accompanying PDF file and reinstalled the complete SDK however that did not help, either.
Any hints? Really would love to get it back working. The problem is, when I select File > New Project, it does not show iPhone as an option AT ALL.
Best regards,
Ralf
No luck for PPC | Orangedo # —
[…] iPhone的SDK的Beta2都出来了,比之前的版本瘦身了,以前2.1G,现在1.6G。不过经过我的测试,PPC的老苹果要想用这个开发,还是不太走运。 最初版本由Mike Rundle用单独安装iphone相关的pkg而使得xcode正确运行iphone模拟器,现在更新了之后,这个办法不是这么好用了,在原帖里面虽然也有人用改一些参数的办法能test,但是我试过以后还是不行。模拟器打开网站的效果倒是跟真机是一致的,按住option加鼠标,可以模拟双指触摸操作。 […]
thenry # —
I get the “No architectures to compile for (ARCHS=ppc …” message also, but its an error, not a warning. So I can’t get past it. Any suggestions? Thanks
Nomad # —
Anyone have any luck getting around the ‘No architectures to compile for (ARCHS=ppc, VAILID_ARCHS=i386).’ Error?
I went to try to add ‘ppc’ to the Valid Archs in the Build pane of Get Info, but that doesn’t seem to be doing the trick…
Seth Milliken # —
FYI, Tom Bradford has the solution for the ‘No architectures to compile for (ARCHS=ppc, VAILID_ARCHS=i386).’ error on the blog post that he referenced earlier. Thanks, Tom!
Robert # —
I have the same (ARCHS=ppc, VAILID_ARCHS=i386).’ Error.
This was my first install of XCode, so instead of i386 there was an option for armsv6. I have added ppc but the error persists.
Robert # —
I have found a solution. You need to uncheck the option “Build Active Architecture Only”.
Other parameters that I have are:
- Architectures: Native Architecture of Build Machine
- Base SDK: Simulator - iPhone OS 2.0
- Valid Architectures ppc
Hope this helps…
kris # —
“Anyone have any luck getting around the ‘No architectures to compile for (ARCHS=ppc, VAILID_ARCHS=i386).’ Error?”
I am one step further:
If you get the error message from above,
select the pop-down button on the upper left which says something like “Simulator | Debug …”, and select below “ActiveSDK” “Use project settings..”
(In the “Project Info” window, I´ve got the following settings under “Build->Architectures”:
Architectures: Native Ar..
Base SDK: Simulato…
Build Active Architecture Only (Checked)
Valid Architectures “ppc i386 armv6″
(actually, I added “armv6″, because that seemed the only option which could convince Xcode´s “Build” to build error- and warning-free!)
Unfortunately, when I click “Build and Go”, I get the following message:
“Error starting executable
No provisioned iPhone OS device is connected.”
But I can start “iPhone Simulator.app” from the Finder… which means: The application is there.
But, is it possibly not properly “connected” to XCode?
Or does “provisioned” indicate, that it must be somehow “unlocked” online by Apple first?
kris # —
it works!
please follow my steps above AND ADD the following step:
right-click your application file below “Targets”, and select “Get Info”:
a popup window opens:
look at “Build”->”Architecture”:”Base SDK”
For what reason ever, there was still “Device iPhone OS” selected. I changed it to “Simulation iPhone OS”, and…
.. IT WORKS!
VenkataKrishnan # —
Hi,
I have installed iphone SDK in Mac-PowerPC, I am able to develop application, and run in Simulator. But my XCode is crashing when i connect it in System. Please help me out.
Thanks in advance
venkatakrishnan
Ed # —
What finally did it for me was that I had missed this:
> select the pop-down button on the upper left which says
> something like “Simulator | Debug …”, and select below
> “ActiveSDK” “Use project settings..”
This is so great! Thanks everyone!
Marvin Jones # —
I just tried to install the latest iPhone SDK (iphone_sdk__beta_3__9m2158a.dmg) on top of a fresh install o Mac OS X 10.5.2 (and the corresponding XCodeTools on a PowerBook with 1.67 GHz PowerPC G4). The Aspen packages are gone! Looks like Apple have put a stop to iPhone development on the PowerPC platform. I did try installing all the additional packages that sounded relevant, but the HelloWorldClassic.app sample project still failed to compile (no CoreGraphics or UIKit). Shame
Nick # —
I have been trying to get beta 3 running on my powerbook g4, and it seems to me that what packages used to be referred to as “aspen” now all start with “iphone.” I didn’t try any of the other betas so I can’t be sure of this, but I got as far as it building and throwing the “ARCHS=ppc, VALID_ARCHS=i386″ error. I tried changing the config files as per the beta 2 workaround, and yet the error remains.
Broofa # —
Hey folks - old NeXTStep’er here, returning to Mac development for the first time in a long time. I’ve been following Kris’ instructions, above, and am able to successfully build the “MoveMe” sample application. To summarize:
1. Performed default install of the iPhone SDK
2. Opened Packages directory and installed all IPhone* packages
3. Copied /Platforms/* to /Developer/Platforms (this consisted of two directories, iPhoneOS.platform and iPhoneSimulator.platform)
4. Open MoveMe.xcodeproject file
5. In Xcode go to Project -> Edit Project Settings
6. In Build tab, change Base SDK to “Simulator -iPhone OS2.0″
At this point, I can build the application without errors. I am also able to launch the iPhone simulator from Xcode. However, when I try to launch the MoveMe app in the simulator, it launches briefly (shows the “Welcome” button), then exits, with the following message in Xcode:
“Failed to launch Simulated application. See console.”
My suspicion is that I’ve run into a deadend at this point - the simulator simply isn’t designed to run on a non-intel box (???), but I’m no expert here. Any suggestions/help?
Broofa # —
Followup: Got it working by doing the above, then following the directions at http://www.tbradford.org/2008/03/iphone-sdk-beta-2-possible-ppc-fix.html
After relaunching Xcode and opening the MoveMe project, I set the target build info to:
Architectures: Native Architecture of Build Machine
Base SDK: Simulator - iPhone OS 2.0
Everything seems to be working now (woot!)
Landim, Arthur # —
Hi,
I have a mac os x leopard running on g4 mac mini.
i downloaded the iphone sdk (version 3 beta) and installed, and installed manually the iphone* packages.
But the build failed with the archs and valid_archs error.
I tried the solution:
Architectures: Native Ar..
Base SDK: Simulato…
Build Active Architecture Only (Checked)
Valid Architectures “ppc i386 armv6″
And works fine!
When i build and rrun the project, the iphone simulator pops up and OK!
F3L1P40 # —
Thank you man. It’s running ok for the happiness of my pockets.
G4 PowerBook with 1.67 GHz PPC OS X 10.5.2 2Gb RAM
Well done!
Llego Puromac 84 con nuevas iMacs, Mapa de oyentes, resultados encuesta office Mac # —
[…] http://3by9.com/85/ […]
mediter # —
However, after installing the SDK on my PowerBook G4, several SDK interface elements went missing in Interface Builder’s objects Library, these includes PDF Kit, Image Kit, Quartz…
Could anyone help me figure out what went wrong ?
Thank you very much!
Joe # —
Any news on SDK Beta 5? Does this still work?
iBook G4 here..
Matt # —
I have the iphone sdk beta 5 working on a PowerBook G4.
I followed the steps above rather than aspen the packages were prefixed by iphone i installed them after the sdk install.
I then edited the project settings changed the setting Architectures from $(NATIVE_ARCH) to ppc and changed the setting Valid Architectures from armv6 to ppc.
Seems to build and run in the simulator.
Joe # —
To answer my own question, the same procedure appears to work fine with SDK Beta 5.
Post A Comment