how to enable iPhone6+ screen resolution in Xcode 5 - ios

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.

Related

iPhone 7 and 7 Plus compatibility and showing compatibility in the app store

For iPhone 6, 6 Plus, we had to add LaunchScreen, splash image and few changes in settings that would show the app is compatible for iPhone 6 and 6 plus.
How the app will know device for new device ? Is it only with LaunchScreen ?
Does there any rules which will show iPhone 7, 7 plus compatibility in app store for this new device ?
For iPhone 6, 6 Plus, we had to add LaunchScreen, splash image and few changes in settings that would show the app is compatible for iPhone 6 and 6 plus.
This was only necessary because the iPhone 6 and 6+ had different screen resolutions than any previous iPhones. (The same thing also happened when the iPhone 5 came out.)
The iPhone 7 / 7+ have the same screen resolution as the iPhone 6 / 6+, so no changes to applications are needed.
Once your app has support for iOS 10 (and in your situation model: it was also previously compatible for iPhone 6 / 6S / Plus), yes, it is set to be compatible for iPhone 7 / 7 Plus.
The minimum iOS supported on the iPhone 7 is iOS version 10, that's way you have to support it in your project to be reachable by iPhone 7.

How to take Iphone 4 screenshots with Xcode 8

This SO post gives the image resolutions needed for the Xcode Images.xcassettes when doing the launch image for the Iphone. One of the images needed is the 2x for the Iphone 4. However, since upgrading to Xcode 8, the target builds are only Iphone 5 and above. How do I get a screenshot from the Iphone 4?
Xcode -> Preferences -> Components
Install older version of simulator and iPhone 4S will appear in simulator list.
4 and 4S had identical screen resolutions.
P.S. You also need to set project deployment target to the older version you installed
Don't Take.
In XCode 8.0, You are set deployment target 8.0+, it means in You are developing apps for iOS 8.0 and later. iOS 8 and later will be compatible with iPhone 4s, iPhone 5, iPhone 5c, iPhone 5s, iPod touch 5th generation, iPad 2, iPad with Retina display, iPad Air, iPad mini, and iPad mini with Retina display. So it looks like the iPhone 4 is officially dead to Apple.
You are take iPhone 4S screen shot. if You are set the deployment target 8.0.

How to I add simulator for iphone 4/5 in Xcode 6.3.1

I am not sure if i am doing it right. Please help.
To add simulator, goto > windows > devices
problem:
1) When I tried to add simulator for iphone 5 or 4 , it show iOS version 8.3
the dialogbox show :
Simulator name : iphone 4s
Device Type : iphone 4s
iOS version : iOS8.3
Is this correct? iphone 4s should be using ios lower than ios 8 right?
How to I do testing for iphone 4/5 using simulator ?
In the Xcode menu, go to Windows > Devices, and at the bottom left click on the + button.
Xcode 6 only supports iOS 7 and iOS8. You could use iOS 7 for iPhone 4s or iPhone 5, just install the iOS 7.1 simulator from
Xcode > Preferences > Downloads.
iPhone 5 and iPhone 4S can be updated to run iOS 8, so it is perfectly ok to test iOS 8 with these phones.
Is this correct? iphone 4s should be using ios lower than ios 8 right?
It is correct. I have an actual iPhone 4s and it is running iOS 8.3. (In fact, it is my primary development testing device for iOS 8.)
You can install earlier simulators, but there is nothing wrong with what you're seeing.
(And yes, this means that in order to develop for iOS 8, you need to support screen sizes ranging from the tiny iPhone 4s to the massive iPhone 6 Plus. Good luck.)

Set App to run on iPhone 5+

Really simple question but can't find a answer anywhere. How do I set it so my app (iOS App Store) can only be downloaded by iPhone 5+? e.g iPhone 5, iPhone 5s, iPhone 6 and iPhone 6 Plus only. No iPhone 4s or lower.
There is no option for that. There is only option where you can set minimum iOS version.
You can set minimum iOS version from Deployment Target option.

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.
#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)

Resources