Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 595
Clokey Avatar asked Sep 01 '08 12:09

Clokey


People also ask

Can iOS simulator run on Windows?

You can run iPhone Simulator on Windows by installing simulators as native applications on PC. For example, iPadian is a popular tool used by more than 1 million users (official statistics) to simulate Apple's operating system and give you a feel of the iPhone.

Is iOS simulator like the hardware?

An iOS Simulator basically mimics an iOS app or browser on top of a developer's operating system. This is viewable in an iPad or iPhone like window. They cannot virtualize the actual hardware conditions of an iOS device, which is the main requirement for comprehensive testing and debugging.

How do I run a specific iOS simulator?

Specifying a device​ You can specify the device the simulator should run with the --simulator flag, followed by the device name as a string. The default is "iPhone 13" . If you wish to run your app on an iPhone SE (2nd generation), run npx react-native run-ios --simulator='iPhone SE (2nd generation)' .


1 Answers

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
like image 57
Clokey Avatar answered Sep 23 '22 00:09

Clokey