iOS 5.1 with Xcode 4.2 and retina in iPad 3

i have a Mac with Mac OS X Snow Leopard, can i add iOS 5.1 to it?

With the new resolution for iPad 3, how we will do with images, because if the app will run in iPhone 3GS, 4 and iPad 3 i think we should have 3 images with different name like @3x.png or .. thank you.


Solution 1:

@WrightCS's answer handles the part about the images perfectly well.

However, you can get the simulator and SDK to run on Snow Leopard.

  1. Download Xcode version 4.3.1 bypassing the AppStore from here http://developer.apple.com/downloads
  2. Open up the package and copy

    /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Develop‌​er/SDKs/iPhoneOS5.1.sdk
    to 
    /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS5.1.sdk
    
  3. Copy

    /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceS‌​upport/5.1
    to
    /Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176
    
  4. Copy

    /Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/‌​Developer/SDKs/iPhoneSimulator5.1.sdk
    to 
    /Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator5.1‌​.sdk
    

Adapted from here.

Edit: Get your iPad Retina on by copying

/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app
to
/Developer/Platforms/iPhoneSimulator.platform/Developer/Applications/iPhone Simulator.app`

Solution 2:

iOS 5.1 comes with Xcode 4.3.1 which is only available for Lion — the only download available in the Developer section on Apple's Developer portal for iOS 5.1.

Basically, the iPad images are going to be double the size of the image you would normally create for the iPad. For instance:

Launch images

iPhone: : 320 x 480

iPhone @2x: 640 x 960

iPad: 768 x 1004 (portrait), 1024 x 748 (landscape)

iPad @2x: 1536 x 2008 (portrait), 2048 x 1496 (landscape)

Per Apple

Get your app ready for the new iPad.

To ensure your iOS 5 apps are optimized for the new iPad, review the updated iOS Human Interface Guidelines and iOS App Programming Guide.

  • iOS Human Interface Guidelines

  • iOS App Programming Guide

iOS SDK Release Notes for iOS 5.1

With this software you can develop applications that run on iPhone, iPad, or iPod touch running iOS 5.1. You can also test your applications using the included iOS Simulator, which supports iOS 5.1. iOS SDK 5.1 requires a Macintosh computer running OS X 10.7 (Lion).

Naming Scheme:

This seems to be the naming scheme for the new retina graphics for the new iPad.

icon@2x~iphone.png; icon@2x~ipad.png

Solution 3:

You will probably also want to copy the 5.1 docset to be able to view the most recent documentation within Xcode:

Copy

/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS5_1.iOSLibrary.docset
to
/Developer/Platforms/iPhoneOS.platform/Developer/Documentation/DocSets/com.apple.adc.documentation.AppleiOS5_1.iOSLibrary.docset                      

And be sure to restart Xcode.