IOS-Simulator in Xcode does not show iPhone -like but regular window - ios

It used to work properly, with 100% as well as 50%. Then I did not use the simulator for some time but only the console, having moved the simulator almost out of site. Now I need it but realize that instead of an iPhone surface just a regular window is shown, like in this thread:
XCode iPhone simulator does not look like an iPhone
I read lots of proposal I found on the web to this problem and followed the advices.
So I changed the size to 100%, tried different iPhone devices. And finally I deleted the Xcode application from the application folder and removed all remaining items by putting in the order
sudo /Library/uninstall-devtools --mode=all
into the terminal.
I downloaded Xcode again.
The problem is still there.
The very strange thing about it: It did work properly when I installed Xcode for the first time, about 6 weeks ago.

As far as I know it depends on the deployment target whether the simulator shows the iPhone frame or not. I think if you set iOS 7 as the target you won't be able to see the iPhone image around your app screen. (For example, I have never seen an iPhone image in the simulator for a 4'' device.)
Try changing the deployment target and play around with different devices under Hardware / Device in the simulator.
Edit:
Here is a more detailed answer.
It's one of the replies to the question that you linked.

You better select your simulator and set Hardware -> Device -> iPhone
Note 1: If you want the simulator should looks like iPhone do not select the retina simulator.
Note 2: You must check the target version of you app in xcode it must be below 7.0
Note 3: Keep the scale of simulator always 100%.

Are you sure the current project you're working on is an iOS and not an OS X project? You can verify this be looking at the project's folder. If the app ist for OS X, there is most likely a .xib file. If it's a iOS project, there should be a storyboard file.
As the OS X apps use windows, like the one you described, this could be a hint.

I have found the solution for the problem I had (and other users as well):
At PREFERENCES / DOWNLOADS older versions of the iOS simulator are available. While at the moment the current version is 7.0 (beginning January 2014), versions 6.0 and 6.1 are being offered for download.
After downloading I could chose more devices than with version 7.0. Now also the non-Retina iPhone is available.
As a result, the iPhone surface is being displayed when set to 100% (at WINDOW - SIZE).
Thanks to everyone helping!

Related

Can't create iOS simulator

I am trying to create an iOS simulator with iOS 10 on iPad 2.
I went to the dialog which allows us to create new simulators, Then I entered the simulator's name
and the device "iPad 2" in my case.
Now, time to chose an operating system. Since iOS 10 wasn't available by default, I checked the download option on the left and downloaded the version I wanted.
I downloaded iOS 10 as shown below. :
But when I go back to select the OS I downloaded for my emulator, it doesn't even appear in the drop down.
The same goes for every other simulator I tried to create.
Please does someone know what is wrong ?
Max iOS for iPad 2 is iOS 9.x
Best option is to use a device.
If you really want an iPad 2 simulator, you'll need to use an older version of Xcode.

Are non-retina images required for purely iOS7 apps? [duplicate]

The next update of my iPhone app will be targeted for iOS7 only. A couple of questions?
Does this mean I can delete all the non-retina images from my app?
If I have only retina images left do I still need to mark them #2x?
Does Apple keep older iOS versions of my app on the store so those running older versions of iOS who have bought or want to buy can still access it?
Any help would be most appreciated.
Yes you still need to have the #2x at the end. Yes you can drop all the non-retina images but could affect performance as even the newer devices will use some none-retina images but the main performance hit was to iPhone 3GS and below but as iOS 7 will not run on iPhone 3GS or below it isn't a requirement you'll just have to handle the performance issues. No Apple do not keep hold of older versions of your app on the app store, if you drop support for it then it is gone.
To answer the second part of your question YES, Apple does indeed store older versions for download.
For my app Parkable I created one for iOS5/6 then when 7 came about I specifically targeted it and dropped support for older iOS builds, now if you're not on 7+ you can still download the old version (instead of the old error telling the user to update their OS). This happens automatically as I recall, simply change your deployment target in both your project and target under the info tab.
Feel free to test if you have a pre-7 device (iPhone or iPad) and 7+ device https://itunes.apple.com/us/app/parkable/id577954935?mt=8&uo=4

Wrong Icon Installed by Xcode

I have been pulling my hairs for the past few days. It appears I am the first one who has experienced this problem because I could not find anything that is even close through Internet searches. The problem that I have experienced is the following:
Icon for retina iPad of iOS 6.1 and prior (size 144x144) and Icon for iPhone of iOS 7 (size 120x120) are not installed correctly. If I use asset catalog, when installing my app on iPad (retina) with iOS 5, the iPhone icon (120x120) is installed. iPhone with iOS 7 works fine using the same icon (120x120). If I don't use asset catalog, but instead add the icons to the info.plist (CFBundleIcons array), it goes the other way around. iPad icon is fine this time (144x144 icon was installed). But iPhone uses the iPad icon (144x144).
What's more strange is that this is not a problem with one of my two targets. It is only a problem for the second target. The second target was created by duplicating the first one. I have compared the info and settings of the two projects, but did not see any difference (other than bundle identifiers and product names etc., of course).
I've upgraded my Xcode to 5.0.2 and that makes no difference.
I'd appreciate it if anybody could shed some light on this.
Update #1: I tried to use the icons from the first target and the problem is still there. So it's not related the icon png files. It's target related. Also tried to clean the project, delete the app from the devices to no avail.
Update #2: When I use plist instead of asset catalog, what's (incorrectly) installed on my iPhone (iOS 7) is not the 144x144 icon. It is 144x144 icon for iOS 6.1 and prior. It's still an incorrect icon.
Update #3: This is actually easy to reproduce. I created a cocos2d project from scratch this time (the Hello World project). Tried to add all the icons using the two ways introduced in the following technical article from Apple:
https://developer.apple.com/library/ios/qa/qa1686/_index.html
When using the asset catalog, 120x120 icon was installed on my iPad (retina) with iOS 5.
When using the project editor, 152x152 icon was installed on my iPad (retina) with iOS 5.
In both cases, what is supposed to be installed is the 144x144 icon. Will probably contact Apple on Monday.
I filed a tech-support case with Apple and confirmed that this is a known issue (as of 02/10/14). I open a bug report with Apple. This issue is not noticeable for most people because icons are all resized from one design. Even though the wrong icon is installed, it is barely noticeable (the icon is still resized to to the correct size on the device automatically). This is noticeable when you want to use different icon design on different iOS. For example, the icon curvature for iOS 7 is different. There is no workaround according to the Apple support.
Hope this is useful for anyone who runs into the same issue.
Regards,
Ryan
Make sure you don't have the older icons named with the an older version of Xcode's default icon names (Icon.png, Icon#2x.png, Icon-72.png). I have found that when these names exist, they are used even if other icon names are specified.
Try cleaning the project. Command-Shift-K , that usually fixes such issues

iPhone simulator not working since xcode5 upgrade

Ever since i upgraded to xcode5, the iOS simulator only displays as an iPad even though the project is targeted for iPhone. The Run button also shows it's set to iPhone and I've tried switching between the different iPhone types in simulator. But no matter what, my iPhone project opens as an iPad simulation. Anybody encounter this problem or know how to fix it?
I believe I've downloaded all the relevant libraries and tools from apple as well. I'll double check that now but I'm pretty sure I have all the accessory downloads up to date.
Edit
I found the answer! Due to the changes with resolution of the retina display, the simulator was loading without the bezel. Turns out the best way to solve this problem without a large screen or retina display is to deploy target in navigator=>General menu=> to iOS 6.1 and make sure iOS simulator=>Hardware=>Devices=>is set to iOS 6.1 as well.
Have you tried changing the simulator device? Go to iOS Simulaotr.app -> hardware -> devices?
Download the extra components/simulators..
If you find your iOS simulator is showing a large iPad like display since upgrading, it's because of the change in resolution for the retina display. In order to view the simulator as a regular looking iPhone follow these steps:
Deploy your project target for iOS 6.1 or earlier. In the navigator menu (far left), top folder (your project folder), click it. Make sure "General" is selected in the menu in the centre of the screen. In 'deployment Info' set it to iOS 6.1 and 'devices' to iPhone.
Open iOS simulator: Click 'XCODE' in the top left of the screen => Open Developer Tools => iOS Simulator.
In iOS simulator, go to => Hardware => Devices => select iPhone => iOS 6.1. Make sure not to select any of the hardware devices that are listed as retina displays, thats the major key.
Finally, make sure the deployment next to the run button is also showing 'iPhone iOS 6.1' AND NOT 'iPhone Retina...'
And enjoy seeing the iPhone simulator properly again! :)

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:
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.
The Simulator window only shows an iPhone (4/4s) bezel when:
The simulated device is a 3.5 inch non-Retina iPhone, and
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.
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.
And in the next step be sure set the window scale to 100 %.
For some reason it looks like an iPhone on my retina Macbook Pro, but not on my iMac.
They're probably looking at the resolution of the Mac, which doesn't really make sense, since you see less at 2880x1800 retina, than 1920x1080 non retina.
The problem I think is not with your XCode, but with your display. Check this : iPhone skin on Simulator
Check this Goto IOS Hardware >>Device >>iPhone
then window +1
Unfortunately it works like that for anything else - there is no option to show a case for any other simulators.
Absolutely correct, im using IOS simulator 7.0, there is no option regarding this. i did every possible step to make it look like iPhone but hard luck IOS simulator not having this option in Devices.
I've had this issue also. As indicated earlier, I went to preferences, downloads and then clicked on the ios 6.1 download. After installing it gave me the option of the "iphone". This option actually looks like the iphone. After the install it still includes the retina options as well.
It could be a scaling issue. In the simulator toolbar, go to Window -> Scale, and make sure that 100% is checked. Regarding how to enable iPhone non-retina if not shown, I wrote some steps in my blog on how to do it.

Resources