Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XCode iPhone simulator does not look like an iPhone

Silly question, but.. I am not been able to see the device appearance when running the iPhone simulator. I don't remember after which XCode update this started but the iPhone simulator shows only as a simple window without showing the device case like it used to be (see this image).

That's how my simulator looks like:

simulator

Is there a way to make it look like an actual iPhone 5?

EDIT: Unfortunately in my hardware->device options I see only iPhone retina (which is currently selected), but there are no more options. So it seems like the default beheaviour to look like a thin window, unless I missed out some other configuration.

Here is what I see overlayed to a user answer.

enter image description here

like image 393
mm24 Avatar asked Oct 08 '13 10:10

mm24


People also ask

How do I use iPhone as Xcode simulator?

To run your app in Simulator, choose an iOS simulator—for example, iPhone 6 Plus, iPad Air, or iPhone 6 + Apple Watch - 38mm—from the Xcode scheme pop-up menu, and click Run. Xcode builds your project and then launches the most recent version of your app running in Simulator on your Mac screen, as shown in Figure 1-1.

Can we run iOS simulator without Xcode?

Well, that's not entirely true, you can actually still directly launch iOS Simulator without opening Xcode first by creating an alias. Note that modern versions of Xcode and OS X call the iOS Simulator simply “Simulator”, where you go will depend on which version of OS X the Mac is running.

Is iOS simulator like the hardware?

An iOS Simulator basically mimics an iOS app or browser on top of a developer's operating system. This is viewable in an iPad or iPhone like window. They cannot virtualize the actual hardware conditions of an iOS device, which is the main requirement for comprehensive testing and debugging.


2 Answers

The Simulator window only shows an iPhone (4/4s) bezel when:

  1. The simulated device is a 3.5 inch non-Retina iPhone, and

  2. The window scale is 100%.

In Xcode 5, you can't do the first one unless you download the iOS 6.1 simulator, because 3.5 inch non-Retina devices are not supported by iOS 7.

(For simulated devices other than 3.5-inch non-Retina, you'll also see a bezel at 100% scale, but this bezel doesn't look exactly like any particular device.)

If you want device images to use in promotional artwork for your app, see Apple's App Store Marketing Resources page.

like image 88
rickster Avatar answered Nov 07 '22 09:11

rickster


First of all this does with retina devices.

STEP 1: Follow this step if you using Xcode 5 as you need to download the iOS simulator.

Go to XCode,

  • Open the main XCode Preferences option then Downloads. Click on iOS 6 Simulator Change to the simulator you want by going to the "Hardware" menu. Close the simulator. Run the project.

STEP 2:

As you required just change device from Hardware -> device to iPhone as shown in the image.

enter image description here

And in the next step be sure set the window scale to 100 %. enter image description here

like image 38
Buntylm Avatar answered Nov 07 '22 10:11

Buntylm