As things have moved on since the original post on 3by9.com, here are the steps that I had to follow to get the environment working on my PowerBook G4.
BTW, I would like to say that I realise that this is not a supported environment and I share this for purely pedagogic reasons.
- Download and install the iPhoneSDK (final version)
- After the install finishes, navigate to the packages directory in the mounted DMG
- Install all of the pkg's that start with iPhone
- Copy the contents of
/Platforms
to /Developer/Platforms
(should be two folders starting with iPhone)
- Locate '
iPhone Simulator Architectures.xcspec
' in /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Specifications
and open in a text editor.
- Change line 12 to:
Name = "Standard (iPhone Simulator: i386 ppc)";
- Change line 16 to:
RealArchitectures = ( i386, ppc );
- Add the following to line 40 onwards:
// PowerPC
{ Type = Architecture;
Identifier = ppc;
Name = "PowerPC";
Description = "32-bit PowerPC";
PerArchBuildSettingName = "PowerPC";
ByteOrder = big;
ListInEnum = NO;
SortNumber = 106;
},
- Save the file and start Xcode
- You should see under the New Project Folder the ability to create iPhone applications.
- To get an app to work in the simulator (and using the WhichWayIsUp example) open Edit Project Settings under the Project menu
- On the Build tab change the Architectures to: Standard (iPhone Simulator:i386 ppc)
- Change Base SDK to Simulator - iPhone OS 2.0
- Build and go should now see the app build and run in the simulator