My simulator (any iOS version) can sporadically freeze any application I work. Tried "Reset content and settings" option on simulator. Clean my projects derived data in Xcode version 6.4 and so on. Simulator keeps freezing sometimes and I need to restart the application then it works for a while. Mac OS X version 10.10.5. I tried Xcode 7 beta 4 before this problem appears however this happen on another mac where no any beta system was installed. Thanks in advance
Related
I'm running the latest version of macOS Big Sur with Xcode 12.2 beta 3. I build my app for the simulator and it succeeds - but the simulator screen is blank. The same thing happens when I go through the menus and open Simulator manually - Xcode > Open Developer Tool > Simulator. I have tried adding a new simulator device, and running xcode-select --install.
Preferably, I would rather not have to re-install Xcode as I have limited space and would have to juggle other applications, use an external hard drive etc (I have a 128GB MacBook Air).
This is what appears when I try both methods.
I determined the problem.
There was a bug in the developer beta version I was using.
It was causing the simulator to fail to launch correctly.
I have reported this bug to Apple through Feedback Assistant, and moved to a stable version of Xcode which is now working with the simulator.
I agonised over this for ages since I moved to the MacPro M1.
App run fine on connected fysical IOS device but not in emulator...
Upgrading MacOs and Xcode fixed nothing...
Was finally on MacOS 12.3.1 and Xcode13.3.1 when I figured it out.
The only thing that finally actually worked was removing the check to run Xcode with Rosetta and to be sure downloading a new IOSXXX simulator.
Go to Applications -> right click on Xcode --> Get info --> uncheck Open using Rosetta.
Hope it helps for you!
I know that so many people have asked this question earlier. But I think my situation is different. In my case Xcode 9.2 was already installed and I upgraded macOS from 10.13.2 to 10.13.5. Then I installed Xcode 10 beta. Now when I'm running any project on Xcode 9.2 and try to use simulator, its becoming black though I can see the xcode logs. Things I have tried so far,
Uninstalled Xcode 10 Beta
Uninstalling & reinstalling Xcode 9.2
Uninstall Xcode 9.2 and install Xcode 9.4
Reset Content & Settings from simulator menu
Restart Device from simulator menu
Resizing simulator.
Followed this post and cleaned DerivedData, CoreSimulator, iOSDeviceSupport
Re add simulators from devices & simulators section
Now what should I do now?
Try running defaults write com.apple.CoreSimulator.IndigoFramebufferServices FramebufferRendererHint 3 in Terminal (source). Note that this will force Simulator to use OpenGL instead of Metal, so you'll want to re-run it with 0 once this gets fixed.
try workaround, delete Library/Developer folder and start it again
Another option that occurred for me. I subclassed UIWindow and called .init(frame: .zero). Changing to .init(frame: UIScreen.main.bounds) fixed it.
Open up XCode 9 and go to add additional simulators(pictured below) re-add iOS 10 and iOS 11 simulators
You seem to have tried everything except changing the iOS simulator version you are trying to run.
Maybe the problem lies with that specific version of iOS simulator eg. iOS 11.x iPhone 6. Change that and it may run OK.
If you do not have desired version with you, go to XCode->Preferences->Components, and download one of the older iOS simulators available at the time of XCode 9.x.
Then, go to XCode->Windows->Devices and Simulators. Press + sign at the bottom left of the screen. Add your desired simulator version (give your desired name), so that this newer simulator appears in runnable scheme list of XCode.
This is just for the users that failed trying everything to save Xcode 10 and then reinstalled Xcode 9.4.1 and the simulator still not working.
Here is what I did to give Xcode 9.4.1 back running.
After I got this problem after upgraded to Xcode 10.
I tried that famous FramebufferRendererHint, didn't work for me.
I have found out the Xcode 10.1 beta release didn't fix the problem for someone else, so I didn't bother to try 10.1 beta.
From the online research I know the problem is in /Library/Developer/PrivateFrameworks/CoreSimulator.framework.
Without Xcode even installed on your Mac /Library/Developer doesn't exist.
So it is installed by Xcode when your first time run Xcode. You would notice a screen showing "Installing Components"
But after you installed Xcode 10 and then install/run Xcode 9.4.1 it won't touch that folder anymore. So problem stays even you put Xcode 9.4.1 back
That's why after I downloaded Xcode 9.4.1 expanded and ran it. Problem still there.
I didn't backup my Mac. So I decided to start from scratch. Restored my MacBook from Internet, downloaded Xcode 9.4.1 again. and now everything is back to normal.
I can keep releasing the App to App Store now.
In my case (xcode 10), I just left the computer for 10 minutes or so (out of frustration!) and when I came back I found it at the starting screen! .... I guess for the first time it takes time
I have Xcode 6.1.1 and I want to run my app in deployment target : iOS 7.0 , so I tried to download the iOS 7.1 Simulator, but the progress bar is still white (no progress)
How do I fix this problem? and is there an another way to download this simulator? When I put deployment target : ios 7.0 the default simulator doesn't run , it is run only in deployment target : ios 8.0. Note : I am using Swift if it has any affect and my Mac OS version is : OS X Yosemite 10.10.1
Are you using a laptop? I was having this issue while trying to download anything from Xcode. The actual culprit turned out to be my laptop not being plugged in. Apple products seem to halt all downloads on battery power. For some reason Xcode doesn't show any message whereas the App Store immediately complains. I plugged in my laptop and it immediately started downloading.
Potential Solution:
I started the download on 6.0.1, had the same kind of problem. The download progress bar never showed any progress, but I noticed in system activity that data was coming in. I waited until I could see over 900 Mbytes was received (the download is only 850 or so).
I double clicked the entry (near the progress bar) and got a message that an error had occurred - try again later. I closed and re-opened XCode, and the install HAD completed.
6.1.1 on Mavericks did the same thing, but 6.1.1 on Yosemite worked as expected.
I was able to resolve this by reinstalling Xcode 6.1.1. I trashed the existing app in /Applications and redownloaded it from the App Store. I then went to reinstall the 7.1 simulator and it worked (though it was slow).
I should also say that the iOS 7.0 Simulator is not available on Yosemite. Only 7.1 and 8.1.
More than 1 Xcode?
I was able to replicate this by having both an Xcode and Xcode-beta installed concurrently.
Downloading legacy simulator did not work on Xcode, but did succeed on the Xcode-beta. Restarting (or rebooting) Xcode surprisingly worked, and the legacy simulator is available from both Xcode versions.
Had the same issue, progress did not move but data was .
To see progress I contracted and then expanded "components" tab. And after expanding I saw real progress
I tried to run my iOS app on iPhone 5 using Xcode, but when I connected it, the iPhone didn't show up in the top-left selection pane. And also when I ran the app from within Xcode, the error: Xcode cannot run using the selected device error occurred.
After that, I found that my iPhone was not even found in the organizer; it was there previously. However, after upgrading my OS X to Yosemite beta and iPhone to iOS8 (officially released version of iOS 8), everything doesn't work any more...
The last time I was able to run my apps on iPhone is 5 months ago, so I'm not sure when there's something wrong occurred during the period...
I cleaned and rebuilt the app, and restarted Xcode, but nothing worked.
I also confirmed that I use Default compiler in Build Options's compiler settings.
So what am I missing?
I had same problem. Problem is that your xcode is running on v.5 and there is no option to choose iOS 8 as device system. Try to update your xcode over appstore to v.6
i updated my mac book to mountain lion and Xcode to the 4.4 version.
In the pre version I had no problems with closing the iOS simulator and Xcode stopped automatically the building process but now if I close the iOS simulator the build process in Xcode is still running and I have to force quit Xcode because it freezes.
Does anyone recognize this bug, or can you help me to solve this problem?
As a workaround, I've noticed that Running (⌘ + R) and then Bulding (⌘ + B) product succesfully starts new simulator instance, although the old instances are still frozen.
I just reverted to doing something I used to do when this started happening to me back in XCode 3.1 or something.
Press the STOP button in XCODE before you close or background the app in iOS SIMULATOR.
Then close the iOS SIMULATOR.