Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
180 views
in Technique[技术] by (71.8m points)

ios - Is it just the iPhone simulator that is restricted to Intel only Mac's?

I have read that the iPhone SDK (part of Xcode 3) is restricted to Mac's with the intel chipset. Does this restriction apply to only the simulator part of the SDK or the complete shebang?

I have a Powerbook G4 running Leopard and would very much like to do dev on it rather than fork out for a new machine.

It is also worth clarifying that I am interested in development for personal reasons and therefore accept that I would need a certified platform to create a submission for the App Store.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

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.

  1. Download and install the iPhoneSDK (final version)
  2. After the install finishes, navigate to the packages directory in the mounted DMG
  3. Install all of the pkg's that start with iPhone
  4. Copy the contents of /Platforms to /Developer/Platforms (should be two folders starting with iPhone)
  5. Locate 'iPhone Simulator Architectures.xcspec' in /Developer/Platforms/iPhoneSimulator.platform/Developer/Library/Xcode/Specifications and open in a text editor.
  6. Change line 12 to: Name = "Standard (iPhone Simulator: i386 ppc)";
  7. Change line 16 to: RealArchitectures = ( i386, ppc );
  8. 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;
    },
  1. Save the file and start Xcode
  2. You should see under the New Project Folder the ability to create iPhone applications.
  3. To get an app to work in the simulator (and using the WhichWayIsUp example) open Edit Project Settings under the Project menu
  4. On the Build tab change the Architectures to: Standard (iPhone Simulator:i386 ppc)
  5. Change Base SDK to Simulator - iPhone OS 2.0
  6. Build and go should now see the app build and run in the simulator

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...