iOS simulator showing black on 3/4 of screen - ios

I tried several apps running in fresh install (yosemite) of Xcode 6.3 simulator but all of them displays only on first 1/4 of simulator screen.
I changed scaling - did not help.
All devices have this problem.
On another mac the apps are displaying in simulator correctly.
Here the screenshot from simulator:

I frequently have this issue with a VMWare OSX development machine I'm using to develop iOS native apps. From what I've seen it is related to the Window > Scale menu option being set to something different than 100% from a previous launch that messes around all the subsequent initialization phases.
To get rid of it, try doing this:
Exit from VMWare full-screen mode, switching to windowed mode instead.
launch iOS Simulator using its stand-alone shortcut (not from XCode) and wait until it finishes loading/booting the default device.
go to Window > Scale and set it to 100%.
go to iOS Simulator > Reset contents and settings... and click OK.
close and reopen the iOS Simulator using its stand-alone app (not from XCode).
As soon as you see it loading without the glitch, you can switch back to VMWare full-screen mode and also use the Window > Scale as you like.

Related

Xcode 10.0 simulator showing black screen

I am using Xcode 10.0 on macOs 10.13.6, in past several days I am facing issue on xcode simulator that "Simulator shows black screen always" Even not showing boot screen when device boot or simulator boots
Xcode still shows Launching, Attaching application to simulator
Even XCode shows Running of on Device still black screen
Note: It is not issue of lock button simulator tried it also.
Tried multiple solutions including Simulator > Reset content and setting. ,
Delete Derived Data, Tested on different simulator of different iOS Versions, Checked with multiple Projects
None of above solved my problem, I can run application on only my personal physical Device, Attached Image on links

Iphone starts lagging and not responding while debugging via Xcode

I've been trying to test my app on IPhone but the phone freezes time to time and stop responding for a while and so .. when its connected to Mac
(Mac is Installed on VMWare and there has been nothing wrong with it till now even the emulator)
any Idea on what may cause the problem ?
I suggest restarting the simulator and Xcode
first quit Xcode then make sure the active window is the simulator next what you want to do is look up at the task bar (gray bar at the top of the screen) click on hardware and then scroll down to reboot and click that, the simulator will now restart when the simulator finishes restarting navigate over to simulator and click on "reset all content and settings"
if that does not fix the problem try using another simulated device in my experience some work better then others (try the iPhone SE or the iPhone 5s they have worked better for me)

iOS Simulator displaying white screen (only in simulator, screen shot shows UI)

After researching previous topics on this issue, I can't seem to find an answer for my problem.
Xcode Version Version 6.1.1 (6A2008a), OS X Yosemite Version 10.10.2 (14C109)
I just finished creating my first simple application in Xcode using the Single View App template, but cannot get the iOS simulator to get past a blank white screen, no matter how long I wait.
Here's a screen shot of my main.storyboard UI/Assistant editor:
It will however sometimes display the copyright information.
Here's what I've tried already:
Made sure my Main Interface was set to Main (main.storyboard)
Waited for an hour+ for iOS simulator to load and it never did
Tried Reset Content and Settings in the iOS simulator and then tried simulator again
Tried different devices besides iPhone 6 as target devices to simulate and I was able to get the iPhone 5s simulator to display the button, but only the button.
Uninstalled Xcode by moving to the bin, emptied trash, reinstalled from App Store
Now it gets even more strange, If I run the simulator using iPhone 6 as my target device and take a screen shot of my simulation, every object appears normally in the screen shot but NOT in the simulator (still just a blank white screen). Here's that screen shot:
Any help will be greatly appreciated.

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! :)

Black second screen on the iOS iPad simulator in landscape mode

I'm trying to get an external screen for an iOS iPad app up and running. Currently I just could test this with the iOS simulator (VGA connection kit is on it's way).
My problem is that when starting the app in landscape (left or right) or portrait upside down the external display remains black. If started in normal portrait mode then everything is fine.
You can test the whole thing with the sample project provided by Apple. It works in 1 of 4 cases (see below) and behaves exactly like my project:
https://developer.apple.com/library/ios/#samplecode/ExternalDisplay/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010724
Steps to reproduce the problem:
Start your iPad 6.0 simulator by hand (not via Xcode, run project).
In the menu bar: Hardware > TV-Out - pick a screen resolution. A second window will appear and act as a second screen.
Turn it via CMD+ArrowLeft/Right to landscape-left/right or portrait upside down.
Now run the project in your iPad 6.0 simulator.
If the application has started (don't worry, this app just was not designed by Apple to rotate its interface correctly) press the button in the navbar.
-> The second screen will remain black.
Same test in protrait mode (will work correctly):
Quit the simulator, repeat steps 1,2,4,5, don't turn the simulator, leave it in normal portrait mode.
-> The second screen will be filled.
Now I wonder why that is. It's not very nice to only have the second screen at hand if the app was started in portrait mode. And it's not very pleasant to develop and test with this problem.
Funny thing is that whenever you start the app in portrait mode it works, but if you start it once in an other orientation it won't work anymore till you restart the simulator.
Maybe you can also tell me if this is also a problem with the real device and a connection kit / airplay.
Concrete questions:
- Is this bahaviour of the simulator normal?
- Did I just forgot something?
- Is this problem just occuring in the simulator and not with running apps on devices connected to a seconds screen?
Thankful for any hint or advice!
Problem has solved itself. With the newest versions of Xcode/iOS Simulator it works as expected now. The code iteself was ok, just the Simulator did not handle everything like it would happen with a real device.

Resources