iOS 5.1 with Xcode 4.2 and retina in iPad 3 - ios

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.

#WrightCS's answer handles the part about the images perfectly well.
However, you can get the simulator and SDK to run on Snow Leopard.
Download Xcode version 4.3.1 bypassing the AppStore from here http://developer.apple.com/downloads
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
Copy
/Volumes/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/DeviceS‌​upport/5.1
to
/Developer/Platforms/iPhoneOS.platform/DeviceSupport/5.1 (9B176
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`

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

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.

You will need 4 resolutions most likely for some items and 2 for others.
1- iPhone
2- iPhone Retina (#2x.png files)
You only need these if you're scaling up the resolution if the old graphic for retina iPhone works you probably want to use that for your iPad UI. Specifics like app icons are a different beast and you will need 4.
3- iPad
4- iPad Retina (#2x.png files)

Related

What devices currently support Apple ARKit while its in preview mode?

I'm trying to play around with Apple's new ARKit and have downloaded their sample ARKitExample project into Xcode 9 (beta).
Since ARKit doesn't work in the Apple simulator, I'm trying to archive, export and install this ARKitExample app onto my iPhone 7+ so I can actually take ARKit for a test spin as an actual user.
However from that example project's own README:
"ARKit and this sample app require iOS 11 and a device with an A9 (or later) processor. (ARKit is not available in iOS Simulator.)"
Looking at the specs for iPhone 7+, it looks like I cannot upgrade my phone to iOS 11, which makes me think that I cannot deploy and run this ARKitExample app on my phone.
However I see lots of confusing articles about which devices currently support ARKit, like this one, which seems to indicate that my phone does support it.
So I ask: do I need to figure out how to upgrade my iPhone 7+ to iOS11, or will everything work fine as-is, or do I need to find some other device that does run iOS 11? If that last scenario is the case: what devices currently run iOS 11?! I don't think it's even been released yet as it still stands in preview mode...
List of iPhone and iPad Compatible with ARKit in iOS 11:
iPhone SE
iPhone 6s
iPhone 6s Plus
iPhone 7
iPhone 7 Plus
iPad Pro (All three variants and models)
New 9.7-inch iPad (2017)

Must app be tested for all iphone sizes for approval

am newbie in iOS app development.
say, I have created an iOS Swift 3.0 App for iphone 6/6+ (7/7+)
I build Swift app for iphone 6/6+ (same as 7/7+). This means I use the standard Screen size 375x667 to start with.
In Xcode 8.2.1, there is a list of Devices from iPad to iphone 4s which you can use to test to see how your app fit into the targeted devices.
1) I started on iphone 6 (same as iphone 7), my app fit in and look good for this screen size. When I tested it on iphone 4, my App wont fit in; some UI control like TextView is missing. Must I fit my app for this iphone 4s?
2) The same app can fit in ipad (pro 9.7, 12.9 inch) but the UI control will look small.
I need your help for the following questions for app store submission.
a) It is a must that my app must fit in for all the screen size such as ipad and iphone 4s when I started out the app on iphone 6 or 7?
b) Can I just target iphone 6 and above?
Thanks
There is no explicit setting to target only the iPhone6 and above, rather Apple will frown over this and would not encourage it.
But by doing the following, you can target only iPhone5 and above.
In the Project --> Target --> General --> Set the targeted devices only to iPhone instead of iPad/Universal.
Again in, Project --> Target --> General --> Set the deployment target to iOS 10.0.
As iOS 10 does not support iPhone 4s and previous devices you can get away with this.
Also, iOS 10 adoption is already about 80% as reported on Jan 4th, 2017. So you are already targeting most of the users.

Testing #1x view in simulator

Is it still possible to test an #1x view app in simulator, since most iOS devices doesn't support it. Also, I believe that no device will be supported with iOS 10.
The iPad 2 simulators are still available (at least for iOS 9.3).
They have a non retina resolution, so you can use them to run your app in a #1x environment. Even if your app is an iPhone app you can still use them to simulate an #1x iPhone (if your app is iPhone only).
iOS 10 will support the iPad 2 and iPad mini, the two remaining devices which support #1x images (see the Icon and Image Sizes section of the HIG).
With a fresh install of Xcode 8 Beta and iOS 10 beta for these devices I was able to test #1x images.

How do I make my app scale properly on 13-inch iOS tablets?

We finally got a 12.9-inch iPad Pro in the office! However, when putting our app on it, it's just stretched to fit the screen. Looking at the project file, I don't see any settings that would change this. How do I make our app properly scale on these large iPads?
I already tried Googling this, but I keep getting reviews and people begging for Xcode on iOS:
How do i make my app work on iPad Pro?
Make Xcode project iPad Pro compatible
iPad Pro .xcodeproj
Making your app work in iPad Pro
How to optimize app for iPad Pro
etc.
If you build with the iOS 9 SDK, then your app is expected to support all resolutions. Same if you use iOS 8 SDK and use a launch storyboard. Without that, iOS assumes that you don't support the resolution, but scales an iPad app. So that's what you need to do: iOS 9 SDK, and/or launch storyboard.

how to enable iPhone6+ screen resolution in Xcode 5

I am using Xcode 5 (iOS7) and now I want to develop an app, which should be compatible with all iPhone devices. Now using Xcode 5 and in Xcode 5 there is no resolution option for iPhone 6 and iPhone 6+. How to enable these resolutions in Xcode 5?
1) Can I upgrade my Xcode 5 to 6?
2) Can I upgrade my mac from 10.9 to something?
3) How to upgrade splash screen for iPhone 6+?
4) Is it possible that I used Xcode 5 for both iPhone 5 and iPhone 6?
Thanks in advance!
You need to use Xcode 6 to support iOS 8 APIs and to support native resolutions on the iPhone 6 and 6+.
Xcode 5 can't be used to support iOS 8 APIs nor native resolutions on the new iPhones.
1) Yes, install Xcode 6
2) Maybe. It depends on your Mac. But Xcode 6 works just fine on OS X 10.9.
3) Add iPhone 6 and 6+ launch images or use the new launch screen file.
(again: only works when you use the ios8 API in xcode6)
4) Sort of. Xcode 5 can be used with iOS 8 devices but only after the device has been used at least once with Xcode 6. And Xcode 5 can use the iPhone 6/6+ but not at their native resolutions. You need Xcode 6 for that.
rmaddy answered this nicely, just adding additional information here:
You will have to upgrade sooner or later, so better to do it early. In addition you can keep Xcode 5 installed alongside Xcode 6.
Both Xcode 5 and 6 work on Mavericks (10.9) and Yosemite (10.10). If your Mac hardware supports the upgrade, you should upgrade, but it really depends on your personal preferences. It is not necessary for iOS 8.
Add appropriate resolution launch images for iPhone 6 (750 x 1334 - #2x) and iPhone 6+ (1242 x 2208 - #3x) or use mentioned launch screen XIB. Detailed description in document: https://developer.apple.com/library/ios/documentation/userexperience/conceptual/mobilehig/LaunchImages.html
You can run iOS 7 apps on iPhone 6 and 6+ in Xcode 5, but as previously mentioned, if the device has iOS 8 installed, Xcode 5 will not detect it unless Xcode 6 has already detected it. This means that you will not be able to run apps on iPhone 6 and 6+, without opening Xcode 6 at least once to process the device (there is no iPhone 6 with iOS7). This goes the same for iPhone 5(s/c) if they have iOS 8 installed.

Resources