[How To] Build for IOS 5.1 on Snow Leopard

Have an old mac that can run snow leopard but can’t update to lion due to an incompatible processor?

Good news, save your cash.

It presumes your current XCode 4.2 installation is in /Developer, and make sure XCode is NOT running.

Download the Lion 4.3.1 XCode DMG file, and mount it so that you can see it from Finder.

Fire up a Terminal Window (Applications->Utilities->Terminal)

Now enter the following commands into the terminal (note, your password will have to be entered after the first command):

(Enter the commands one by one, don’t paste them all)

sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/  
  
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1.sdk /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/  
  
sudo cp -R /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1\ \(9B176\) /Developer/Platforms/iPhoneOS.platform/DeviceSupport/  
  
sudo rm -f /Developer/Platforms/iPhoneOS.platform/DeviceSupport/Latest  
  
cd /Developer/Platforms/iPhoneOS.platform/DeviceSupport/  
  
sudo ln -s ./5.1\ \(9B176\) ./Latest  

After this is done, unmount xcode 4.3.1 from the finder then fire up xcode. You will now be able to build for ios5.1 under snow leopard.

I tested this myself as I have a iMac which runs Lion, but an old macbook which can’t.

Enjoy :slight_smile:

Info sourced from : http://www.iphonedevsdk.com/forum/iphone-sdk-development/100229-snow-leopard-sdk-5-1-a.html [import]uid: 84637 topic_id: 23827 reply_id: 323827[/import]

Wow, amazing. Thanks, Danny. I imagine many developers would appreciate this.

I assume the build will install fine on new iPad (retina)… If only you could’ve posted this last weekend… (But yeah, I know, it would’ve been impossible then, with massive amount of scrambling the Ansca Team had to go through.)

Naomi [import]uid: 67217 topic_id: 23827 reply_id: 95937[/import]

@naomi, I presume so, I built for my iPhone 4S running IOS 5.1 and it installed and ran fine :slight_smile:

I only discovered it today myself, sorry if it came late :slight_smile: [import]uid: 84637 topic_id: 23827 reply_id: 95943[/import]

I build without any problems New iPad apps on Snow Leopard with xCode 4.2 and IOS 5.1 on Corona build 704b. Everything working good without xCode 4.3. [import]uid: 50988 topic_id: 23827 reply_id: 95958[/import]

Unless you did what i said above, you wouldn’t have the IOS 5.1 sdk on snow leopard

Also if you didn’t do what i said :

You won’t be able to install a app built with xcode v4.2 on a IOS device with 5.1 firmware via the xcode organiser.

If that doesn’t bother you, and you aren’t planning on using any ios 5.1 specific features, i guess it doesn’t matter :slight_smile: [import]uid: 84637 topic_id: 23827 reply_id: 95959[/import]

Thanks so much for posting this! I was on the verge of moving to Lion today, but now I can put it off a little longer.

I just hope these kinds of hacks continue to work for a while since I just found out Mountain Lion drops official support for my trusty Mac Pro. :frowning: [import]uid: 32900 topic_id: 23827 reply_id: 96182[/import]

Sorry to bump an old thread but I tried this and I still get a yellow light in xcode 4.2 for my ipad 2 running ios 5.1

In basic words this did not work for me. [import]uid: 14340 topic_id: 23827 reply_id: 98869[/import]

Although I could install it, trying to build for the dive Corona Terminal shows:
2012-04-06 09:29:50.138 Corona Simulator[439:903] xcode-select is using Xcode version: Xcode 4.2
Build version 4C199
xcode-select is using Xcode version: Xcode 4.2
Any ideas? [import]uid: 4883 topic_id: 23827 reply_id: 98984[/import]

Thanks! I’ve built successfully with build 704B and scale = “letterbox”, in the config.lua.
Now the app scales properly on the iPad3. [import]uid: 13989 topic_id: 23827 reply_id: 102880[/import]

@Danny

so Im running xcode 3.2 on snow leopard, and im currently a corona trial user. I have successfully built and installed on my 5.1 devices (iphone4, and iPad1) I have not tested on the new iPad yet though…not sure if it will work

am i missing something here? is it b/c im not using any 5.1 features that im aware of? im just curious. thanks again for the tips, im definately in that boat…dont want to shell out the cash just yet

[import]uid: 34595 topic_id: 23827 reply_id: 103569[/import]

I did all the above. My app looked fine and functioned normally.
I got this from rejection team:

2.2

We found that your app exhibited one or more bugs, when reviewed on iPad (3rd Gen) running iOS 5.1, on both Wi-Fi and cellular networks, which is not in compliance with the App Store Review Guidelines.

Your app does not go past the Start screen once launched.
Can anyone help with this?

TIA [import]uid: 52900 topic_id: 23827 reply_id: 106734[/import]

@alawzi, this is at best a hack, and we really recommend updating to lion (if your machine supports it) and upgrading to xcode 4.3.2
[import]uid: 84637 topic_id: 23827 reply_id: 110318[/import]

Thanks Danny. I gave up and did not renew my Corona, it expired a few days ago.
I am not in the position to buy a new Macbook, so it is what it is. [import]uid: 52900 topic_id: 23827 reply_id: 112286[/import]

You could use the Mac in a Cloud service @alawazi until you can afford a newer macbook. I picked up a newer MBP off of CraigsList that’s modern enough to run Lion for not a huge amount of money. [import]uid: 19626 topic_id: 23827 reply_id: 112309[/import]