iOS Simulator drawing too big (not a window scale issue) - xcode

Firstly, thanks for your time and effort.
Just today I started having a random issue in my iOS simulator running an app from Xcode 6. No Xcode update has been installed since I last used the simulator so I don't think it is an issue with an update.
Basically, my simulator is drawing everything HUGE. Like 4x the size it should be. This happens with all simulator devices regardless of iOS version. I'm aware of the window scaling with CMD + 1, 2, 3. That is not the issue. It shows the same no matter the scale. When you click or interact with the screen squares of it flicker. This is what it looks like.
Note that it is not just the application, but also the home screen.
I should also note that this does not seem to be just the simulator. The screen saver on OSX with the words and definitions also is entirely too large. I haven't noticed it in any other application though.
I have done everything I could think of to debug the issue.
I deleted Xcode and reinstalled it with a restart in between.
I have created a new user account on my machine and ran a boilerplate app on the simulator and it displayed the same way.
I've changed my screen resolution to see if that resolves the issue.
I cleared the mysterious PRAM.
None of these solved the issue or made it better or worse.
Again, thanks for your time. It is appreciated.

For me pressing command + 2 or command + 3 when the ios simulator opens up solve the problem. Pressing the above keys do scaled down the simulator size.

Bug in 10.10.2 beta:
https://devforums.apple.com/thread/243676
https://devforums.apple.com/thread/254997
iOS simulator scaled bug
iOS 8 and Xcode 6 Simulator Display Out of Alignment
iOS Simulator display scaled incorrectly

I recently started and I had the same issue. You simply have to change the scale. When the iOS Simulator opens, navigate to Window and change the scale; 50% worked for me.

I changed to 14C94b, fixed this bug.
I have been to see same problem for Subline Text3
enjoy)

Related

My iOS simulator is rendering with glitches

I have a 2019 16-inch Macbook Pro with an i7. My iOS simulator is showing terrible behavior on Xcode 12 and 13. The rendering happens only partially. I start typing but only top part of the TextField updates. When I pull my modally presented controllers up and down, it leaves glitches and artifacts in the render whenever I release the mouse pointer from the window. Only when I drag and click something in the simulator, only then the screen updates properly.
I have tried resetting the simulator and the machine, and different versions of Xcode AND or simulator iOS and nothing helps. I also have not found too specific mentions of this issue online.
This is a known issue that was fixed in Xcode 13. It primarily affects the iPhone mini so you can workaround it by using a different simulator.

Xcode 12.3 iOS 14.3 simulators Yellow Dock / yellow translucent issues

Today I downloaded the release of Xcode 12.3, and I went running the iOS 14.3 simulators and it seems like there is a graphic glitch that all translucent views are yellow, dock included.
I redownloaded iOS 14.2 and those seem fine. It just seems really odd. I've submitted feedback, but I was curious if anyone else has seen this?
I'm on macOS v10.15.7 (Catalina) and am curious of if it's just Catalina or also macOS v11 (Big Sur).
Xcode 12.4 RC has announced fix.
iOS simulated devices no longer display an incorrect yellow tint in translucent UI elements. Certain GPUs may continue to display the tint with some tvOS simulators. (71203015)
I think it is a bug related to the discrete GPU.
In addition, this bug causes the background of the on-screen keyboard to be almost RGB(0,0,0). Experienced on MBP 2017 with Catalina.
Workaround I - Using integrated GPU
In the simulator, set menu File → GPU Selection → Prefer Integrated GPU to work around this bug.
Restart the simulator.
This was tested on a MacBook Pro with Catalina and Big Sur. As comments suggest that it won't work on iMac.
Workaround II - Reduce transparency
In the simulated device (e.g. iPhone), Settings → Accessibility → Display & Text Size → turn on Reduce Transparency.
Notice that it can only reduce the previous 'solid' yellow to 'fairly light'.
I find this workaround, as the discrete GPU can be used, is more suitable for testing the UI logic than the previous solution.
This was tested on a MacBook Pro with Catalina. Might work on iMac.
Are you using a MacBook Pro? I had the same bug.
I solved in the following ways.
Step 1: Unplug all cables, including the charging cable
Step 2: Restart the iOS simulator
Best way around it (what I've done), is to download the 14.2 Simulator pack from within Xcode.
Open Xcode->Preferences
Tap Components
Tap the 14.2 Simulator pack and Xcode is going to start installing it.
It's a workaround till they fix that miserable error.
It is Xcode 12.3 bug! you can see that sometimes in the code interface builder too:
It is not critical but If you really care about it, download and use the previous Xcode from here
Nothe that you can't build for iOS 14.3 if you choose to use Xcode 12.2.
More description
Xcode always have unknown issues at the release point. Some of them are critical like this with 54K views! and some are not like this issue with about 5K views in only 13 days.
My suggestion is to always have 2 Xcodes at the same time until you are sure about Xcode bugs!
Happened to me as well, while I was charging my MacBook Pro 2016. I closed my Xcode, disconnected my charger from the Macbook and run it again. The problem was fixed.
One thing to point out/confirm: Seems the issue is limited to the simulator. The issue does not persist when sideloading the project to iPhone.

Xcode 6 simulator to device deformation

I updated to Xcode 6 recently and just started a new project. I made a project using storyboard and i was testing it in the simulator for the past days. Today i was testing the sound in the app and it wasn't working so i decided to try it on my iPod. This is what the app looks like in the simulator:
And now here is how it looks on my iPod:
I didn't use any constraints or anything. The only thing that could have messed it up IMO is the UIProgressView that i made bigger. I don't know if that could have deformed my project on device. Any suggestions to fix it?
ps: I was testing on the iphone 5 simulator and was using an ipod touch 5 to test on device.
Welp, i found the issue(s). The deformation was caused by Auto Layout being checked on. The black bars was solved here https://stackoverflow.com/a/25817683/3763526.

Xcode 4.5 New Simulator not displaying properly

I have just finished installed xCode 4.5 and have been trying to understand the new simulator. I want to test my app in the old screen size and new screen size. However when under the simulator I go to hardware and change the phone size to the 4 inch size, it changes the simulator to take up the full screen, has no home button, is zoomed in, and I have to scroll to navigate which is really frustrating and annoying.
From this
To this
Could someone tell me if this is meant to happen? I want to maintain the normal iPhone look with the simulator, that zoomed in scrollable simulator is terrible, looks horrible and makes debugging a pain. I am sure Apple would not allow something this poor looking to be the normal look for the simulator so I am guessing I am doing something wrong.
The other problem with it is, if I am on the home screen where I can see a list of custom apps under normal iPhone screen size, then change it to the 4 inch simulator screen size, the custom apps I installed on the simulator are not showing for some reason.
Any help would be much appreciated!!
Edit:
I found I change the scale of the simulator under window and changing it to 50 or 75%. However one problem remains, why is there no home button in the iPhone 5 simulator?
What computer are you working on ? I've got a 13'' MacBook and the same thing occurred to me. Some topics say it is related to your screen resolution, and if your screen is "too small" then the simulator won't see the need in a frame representing the physical device. See Nathan Gopen's answer in XCode 4.3.1 iPad simulator. (I also noticed that the frame disappears when you re-scale standard iPhone to 75% or 50%.)
If you need the home button you can find it in Hardware > Home Button, or Shift+Cmd+H. Yeah, I know, it sucks...
This Worked for me:
Go to Simulator Menu
Go to Hardware
Click Device
Click IPhone
This will restore the iPhone Simulator frame.
What worked for me was...
Go to XCode,
Open the main XCode menu option
Click on "Open Developer Tool"
Click on "iOS Simulator"
Change to the simulator you want by going to the "Hardware" menu.
Close the simulator
Run your project again.
XCode was crashing on me when I switched to the non-retina iPad option and this was my solution.
The simulator seems to remember the last hardware option that was chosen.
I don't think it's related to the screen resolution. I'm running it on 1920x1200 and it's the same. I guess it's simply to reduce effort for Apple since it's not essential for development to have a nice looking simulator. But yes, I agree I loved to see a virtual iPhone as simulator. And it was quite easier to produce screenshots of your Apps for your website.
Zooming or scrolling is of course not required on a 1920x1200 screen.
This just happened to me and I did spend a while trying to figure this one out.
By setting the scale to 100% my issue got fixed as Cal said above.
I think this is related to retina display setting ...
When I started the iOS simulator on my macbook pro (w/rd), the iPhone frame came up. I moved the frame over to my attached monitor and it stayed as an iPhone frame. I shut xCode down.
When I restarted, the iOS simulator started up on my attached monitor and lacked the phone frame, just showing the screen. Scaling up or down did not matter.
I moved the unframed screen over to my laptop screen again, and shut down the simulator. When I started it back up, it started on the laptop screen with the phone frame.
I don't think it is related to resolution so much as retina display.
Not sure if this is long term solution, but the following steps helped me.
Go to Windows >> Scale
Select different options as per your wish (I chose 75%)

iOS Simulator for iPad not working since upgrade to Xcode 4.3.2

A few days back I upgraded to Xcode 4.3.2 by downloading from the developer's portal and running the installation files. Since then, I am able to test apps on my devices and am also able to test them on the iOS simulator for iPhone without issues. However, the iPad simulator is not working well. A screenshot is attached.
The home button doesn't appear.
The status bar doesn't appear.
The simulator appears like a window with minimize and maximize icons (only the maximize icon is enabled) and also has a title with the version no.
Can anyone please advise, a screenshot of the simulator is present at the below location.
http://postimage.org/image/68pa1t7l9/
The Skins are missing from the iPad simulator, a solution is using the keyboard shortcuts, Cmd+Shift+H for Home, Cmd+1 / 2 / 3 to resize the window to fit on your screen to avoid scrollbars and such.

Resources