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.
Related
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 upgraded macOS Sierra Developer Preview, but my Xcode 7.3.1 gives below error while try to run my project on simulator. In addition Generic to archieve gives another error like:
In addition for archive: a cryptographic verification failure has occured.
How can I fix this?
I have tried before Xcode 8.0 Beta, uninstall it deleting derivedData and reset content simulator but still occurs this error.
Update:
I want to share an information who want to use Sierra now. If you decide to do below changes you need to know "Uploading App Store with beta software" not allowed by Apple. Continue with El Capitan and Xcode 7.3.1 for production.
If you want the slow solution, you can reinstall Xcode 7.3.1 by downloading it from https://developer.apple.com/download/more/.
It worked for me and now my Simulator is able to start again without getting the error.
The issue is discussed in depth here:
How to fix Xcode "DTAssetProviderService could not start.." error?
This seems to be a major bug. Until Apple fixes it, you can work around it:
Build app
The app will still install on the simulator, even with the error
Launch the app manually on the simulator
Go to Xcode
Click Debug > Attach to Process > Your App Name
That will enable Xcode debugging features and allow your app to run in simulator. Definitely not ideal, but hopefully you can use this until a real solution comes out.
This is a regression in macOS Sierra that multiple developers have reported in the forums and in the lab sessions at WWDC. Xcode 7.3 is not supported on Sierra. If you want to use macOS Sierra, please use Xcode 8.0 beta or later.
If you must use Xcode 7.3 on Sierra, you can partially workaround this bug by using Xcode.app to install the app through Build & Run, launch the app suspended from the command line (xcrun simctl launch -w booted <app identifier>) and then attach with the debugger and resume the suspended process.
Note that this issue only impact Xcode 7.3.1 downloaded from the Mac App Store. You will not hit this issue if you use Xcode downloaded from http://developer.apple.com (ie, the "drag & drop installer"). Note that you might hit another issue with the same symptoms when using the drag & drop installer. That is discussed in DTAssetProviderService could not start DTXConnection with Simulator
You can still run the debugger, but you have to attach it manually.
You can run your app tapping the icon in the simulator, than switch back to Xcode and select Debug, Attach to Process and pick your app process.
The following steps fixed the issue for me:
Remove both Xcode 7.3.1 and 8 Beta
Remove /Library/Developer and ~/Library/Developer (before removing check the contents and back up whatever you need)
Download the Xcode 7.3.1 DMG file and the Xcode 8 Beta xip file (unless you already have them)
Install 7.3.1 and test the Simulator (should work fine now)
Install 8 Beta and test the Simulator in 7.3.1 again (should work as before)
Restore what you backed up on step 2
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
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