Why is iPhone not available in Hardware -> Device - ios

On my simulator under Hardware -> Device I only see iPhone Retina but not iPhone alone.
Is there a reason for this? am I missing iPhone?

If your project's Deployment Target is iOS 7.0 or later then that is why you don't see non-retina iPhone choices.
iOS 7 doesn't run on any non-retina iPhones or iPod Touches
iOS 7 does run on the iPad 2 and the non-retina iPad minis, which is why you do see the iPad option

Related

Run phone-only app on iPad with 4.7 inch resolution

I have an iPhone-only app that i want to test on a real device. Yet the device available is New iPad 9.7 inch. How can i test the app on that iPad but with higher resolution than iPhone 4 (iphone 5, 6 and 6 plus).
In the project setting -> General -> Deployment info:Change the "devices" setting from iPhone to Universal.
Is it what your mean?

Test app for iPad mini

I am developing application for ipad. I have tested application for ipad 9.7 inch. I want to test app for ipad-mini which is a client requirement. How can i test my app for iPad mini. Although ipad-mini and ipad 9.7 inch have same pixel ratio but according to client there is still an issue on ipad-mini.
I am currently using xcode 8.3.
There is no simulator device available for iPad mini.
You will have to download simulators for iOS 9 from the XCode-Preferences-Components as shown in the below image because iPad mini is not updatable to iOS 10. Thats why it is not showing up in the simulator list. Once you will download the components for iOS 9 you will get it in your simulator list.
There's no simulator for iPad mini. Either get one physical device or test on older version of ipad with similar resolution (or screen ratio)

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.

Xcode 8 and ipod touch [duplicate]

This question already has an answer here:
How to get iPod Touch simulator in Xcode 6.1
(1 answer)
Closed 6 years ago.
I need to develop an application to run on a recent iPod touch. Xcode does not have iPod as an option for device (only iPhone or iPad). Likewise, there are no simulators for iPod touch. I've read you can just select iPhone as the device and simulator but I am skeptical that will create an app I can deploy to a iPod. I've also read you can use iPod's to test iPhone apps but this is not my scenario. Is writing apps for the iPod touch with Xcode a bad idea?
Yes, you can develop for iPod touch using Xcode, just as you do for iPhone and iPad. (There is in fact no other way to develop apps for iPod touch.)
The differences between an iOS Simulator and any physical iOS device are much more significant than those between an iPhone and an iPod touch. (No simulator configuration has telephony capability, for example.) If you want to target the 5th- and 6th-generation iPod touch screen size when testing in Simulator, just choose the iPhone 5, iPhone 5s, or iPhone SE simulator, as those iPhone models have the same screen size as the last two iPod touch models.
When you choose an app template upon starting a new project in Xcode, the choice it offers you between "iPhone", "iPad", and "Universal" really means "phone form-factor" vs "tablet form-factor" vs "support both". If you choose iPhone or Universal, you'll get template UI layouts that support a phone-sized screen (or rather, various phone-sized screens, including 4-inch for iPhone 5/5s/SE, 4.7-inch for iPhone 6/6s/7, and 5.5-inch for iPhone 6/6s/7 Plus).

What's the different between iPad Retina simulator and iPad Air simulator in Xcode 6?

An iPad Air already has a Retina screen, so why has Apple deliberately designed two kinds of simulator?
The simulator does not include the iPad mini. The difference between the Retina and the Air is the 64 bit processor.
iPad Air = Retina x64
iPad Retina = Retina x32
iPad 2 = Non-Retina x32
To test the iPad mini Apple recommends testing on a non-retina device (aka iPad 2):
From the "Apple iOS Simulator Guide":
Although an iPad mini isn’t an option for a simulated device in
Simulator, you can still test apps for the iPad mini in the simulator.
To do this, run your app on the simulated iPad without Retina display.
Edit:
You can also test iPad mini on iPad Retina Simulator.
See updated Apple "iOS Simulator User Guide":
Testing for the iPad mini
To test apps for the iPad mini in the simulator, run your app on a simulated
iPad with the corresponding type of display, either Retina or non-Retina
depending on the iPad mini model.

Resources