iOS 5.1 with Xcode 4.2 and Retina in iPad 3

iOS 5.1 with Xcode 4.2 and retina in iPad 3

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

Build automation for iPad 3 Retina App

Using Xcode create several targets within the same project for each app needed e.g. in your sample project create two targets called SampleApp and SampleAppHd. Add the relevant images for each target in the target settings: Select the target SampleAppHd, click tab Build phases - copy bundle resources - Add items - Add other. Use the finder filter to filter only those images containing @2x and add them. Similiary you can use the filter box in the tab Build phases to remove images containing @2x from a not-HD-target.

Once the targets are setup correctly you can use them for building separate apps (e.g. SampleApp and SampleAppHd) using your automatic build process.

How to get Retina display iPad simulator in XCode 4.2, Mac OS 10.6.8 (Snow Loepard)

I tried installing the same from Snow leopard and failed with error "Xcode can't be installed on Macintosh HD because Mac OS X version 10.7.3 or later is required."

So updated to Lion 10.7.3 and took Xcode 4.3.1 from Mac App Store which was released on 7th March 2012.

Yes, you have to upgrade to Lion.

Why is [[UIScale mainScreen] scale] 1 on an iPad 3 with Xcode 4.2?

Before XCode version 4.3, [UIScreen scale] will return 1.0 for an iPad 3. Updating to 4.3 will enable the correct value of 2.0 being returned.

Develop apps for the iPad 3's retina display without lion?

If you are asking about iOS the iOS 5.1 sdk, then you will have to update to Lion and Xcode 4.3.1 to get it.

But as to the Retina display of the iPad 3, there is nothing special about it in the new sdk. So you can develop apps for the iPad 3 using Xcode 4.2. Just make sure you take into account the high resolution of the device when working with images and other graphics as you do with the iPhone Retina Display.

Xcode 4.2 with iOS 5.0 not detecting iPhone iOS 5.1.1

I managed to solve the problem, by:

1) downloading xcode 4.3.1

2) copying from package content SDK & Device Support for iOS 5.1 into Xcode directories

3) run and test on your device

solution found here: iOS 5.1 with Xcode 4.2 and retina in iPad 3

Do I have to upgrade to Lion to test on iPad with iOS 5.1?

The short answer is Yes, you need to upgrade.

Some people have gone to heroic lengths to get SW to run on unsupported OS releases. Here's an example for getting iBooks Author onto Snow Leopard:

http://osxdaily.com/2012/01/20/install-ibooks-author-on-mac-os-x-10-6-8-snow-leopard/

In theory, it may be possible to run Xcode 4.3.1 on Snow Leopard or even jam iOS 5.1 support into Xcode 4.2. In practice, good luck. I would never personally do it, because development is hard enough. If Xcode or your app crashes or has issues, you have to throw out all your assumptions.

You mentioned that it is your work's iDevice. Consider getting them to upgrade your Mac OS or your hardware for you.

Retina support imageNamed @2x not working

It's not working by default, because Xcode 4.3.1 was the first version to support the new iPad (retina)

If you want to get it working anyways, check this answer

Xcode and iOS5.1 on iPhone won't work

The current Xcode doesn't have the latest iOS 5.1 SDK (not to mention it looks like Apple took down the beta builds). You'll have to wait until Apple updates Xcode.

How can I restore the iPad frame around iOS Simulator 5.1?

Download Xcode 4.2.1 from the dev center... other than that, there's nothing you can do about it. Besides, I rather like the new minimalistic simulator. (BTW, there is a rationale behind this: the new retina simulator is just too big to provide a good bezel image).

EDIT (to address the core of the problem): Even if you could find a suitable bezel image, how could you edit the internals of the simulator? My proposal is: find an old Xcode with the proper sim, or mod the simFinger application to include an iPad frame (to my knowledge, it only works with the iPhone sim), and iPad dimensions. Available here: https://github.com/atebits/SimFinger

EDIT 2: As it turns out, it does support the iPad, and bezel!



Related Topics



Leave a reply



Submit