I recently updated my Xcode from 9.2 to 9.3. But unfortunately, all iPhone simulators are no longer visible.
How do I solve this problem?
You have to delete Derived Data.
In Xcode, go to Preferences > Locations > Derived Data : click the little arrow to open the derived data path in Finder. Delete the DerivedData folder.
Restart Xcode.
It should work.
Also remember to check the architectures, they must match the type of device, for example, if you only have arm64 selected nothing will appear, you must select armv7, or both.
All way above not working for me. It's took for 3 days, finally I found exactly way to fix this error. Because iOS Deployment Target under build settings is higher than list simulator. I was using Xcode 12 while the deployment target was set to iOS 14.5. I got the list of simulators as soon as I set it to iOS 14.4. So you just need to downgrade IOS version smaller than IOS version in simulator.
Also you have two options as shown in your screenshot.
Add additional simulators
Download simulators
Try them out
I have another solution, You can also perform these steps, to resolve this problem:
Step 1: Select Preferences... from menu
Step 2: Select locations from top tab
Step 3: select xcode which you use.
If Simulator doesn't show after this process then Quit XCode and then reopen again.
Lowering down the deployment target in the build settings did the trick for me.
I recently installed Xcode 9.0 GM on my machine. I fired it up to play around and the only simulators I see in the scheme are iPhone 8, iPHone 8 Plus, and iPhone X. I clicked "Download Additional Simulators" thinking the solution would lie there.
I'm greeted with this screen, which is everything I previously had installed.
I dug around on the Apple Developer forum and found this post discussing a similar problem with a prior version of iOS. At the suggestion of one of the posters, I powered down my machine and booted it cold. I opened up Xcode 9.0 again and I have the same issue.
Any suggestions what I can get additional hardware to appear in my Xcode scheme? Thank you for reading.
In Xcode 10.3, I also lost all simulators but got them back by running
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
In case anyone else gets here and are in my situation, I just upgraded to Xcode 9.2 and the simulators were all missing, but quitting and relaunching Xcode restored them.
For me quitting and relaunching Xcode also didn't help. So I did the following 3 steps.
Three steps
Step 1:
Product -> Destination -> Download Simulators... Download the simulator(s) you need
Step 2:
Sometimes when you download the new simulator types, they don't automatically show in the list of possible simulators.
Product -> Destination -> Add Additional Simulators... Click the + button in the lower left hand corner, then Add Simulator Give it a name, device type, and the iOS version you just downloaded.
Step 3:
Set proper deployment target. If you have downloaded simulators of lower versions, set the deployment target to the same.
Now it should show up in your list of simulator devices!
Delete every single one of the simulators listed in the Devices and Simulators window, one by one, and then start over make new simulators. That always works for me. It's a good idea after any upgrade, in fact.
My question was originally answered, but I found a more efficient way to do it with fastlane. Within fastlane, there's a tool called snapshot. The usage is as follows from terminal:
fastlane snapshot reset_simulators
Warning: This will delete all your simulators and replace by new ones! This is useful, if you run into weird problems when running snapshot.
I just downloaded xcode 9 beta, but there is no simulator within it. Try to add new simulator but the create button doesn't work. Please help
By "no simulator within it" I mean there is option to build with simulator.
See
.
Also, the create button doesn't work
Go to Xcode Preferences -> Locations and go to the Derived Data location in Finder:
Just remove all contents from it, then right click on Xcode icon and quit it, and reopen it:
It is a simulator but you need to close Xcode 8 if you have it open and restart Xcode 9 beta.
This may happen due to multiple Xcode installed on machine or might be the deployment target is higher than the simulator OS version.
In order to resolve this navigate to following location :
Xcode > Preference > location > comindline Tool > change the xcode version
and decrease the deployment target.
You may have removed iOS Simulators when you cleaned up disk space. I think I may have used DaisyDisk to remove files when I ran out of space.
You can re-add simulators using the Devices & Simulators window. (Shift + Command + 2)
Delete the derived data, close all your running Xcodes and restart your computer. It just helped me.
Apart from the simulators not showing, my project's storyboard was messed up also after upgrading to XCode 9. I simply restarted XCode and voila! Did not have to delete derived files - though it would probably not hurt.
You can do the same that #badhan-ganesh suggests (cleaning derived data) using the Xcode keyboard shortcut to clean derived data:
shift+alt+cmd+k
If needed, you can clean the project using Xcode keyboard shortcut:
shift+cmd+k
After that, restart Xcode and simulators should be available again.
Having a higher deployment target than what is installed on your simualtors also causes this.
Ensure your Deployment Target version in Build Settings is also set to the desired version (and that you have that version of the respective simulator installed). Suppose, if that were set to 10.3 and I didn’t have an iOS 10.3 simulator installed, I wouldn’t be able to see any simulators. But because it’s set to 10.1, and I have 10.1 simulators installed, I can see them.
When my xcode updated to 9.4 I face the same problem at first time. After force quit and start again solve the problem for me.
If you upgraded Xcode then follow the steps
Delete derived data, Xcode-> Preferences -> Locations and select arrow symbol just before Advance button -> select all files and delete.
Quit Xcode
Quit Xcode from Dock
Open Xcode again.
:-)
Hope this will help you.
I have Xcode 8.3 and Xcode 9.1, I came to this post to find a solution to missing simulators after forced upgrade to 9.1...
I was about to do the suggestion to remove the entire DerivedData directory, lucky closing Xcode 9.1 and restarting it worked. Moreover, I had to close all simulator(s).
I had to rebuild app apps on simulator again.
I recently tried to run a simulation of a new iOS 7 app on Xcode 6.1.1 using my MacBook Pro during a visit to Indonesia. The app was based on AddMusic and made iOS 7 compatible. When I tried to run the simulator abroad iOS simulation targets available while testing in Australia had simply disappeared from the pulldown menu in Xcode. Moreover since I came home these simulators only reappeared when I removed, downloaded and reinstalled Xcode.
Until I reinstalled Xcode the only option Xcode offered was to run the app on an iOS device but I wasn't prepared to do this in front of clients without first being able to test a revision on a simulator.
Thankfully on this occasion I was able to demonstrate earlier versions I had installed on an iPhone 4 and iPhone 5 C before I left home. But it would be really good to know what I might be able to do to avoid this situation during my next visit abroad.
I suspect the issue may have been brought on by differences between my Internet connections at home and abroad.
Has anyone else experienced a similar problem that might be related ?
Top to your Right Click on
Window > Devices
You will see that no devices will be showing Do the following
Bottom Left
Click on the +
And then start adding your devices.
Just closing the projects from the File Menu, quitting Xcode and restarting Xcode worked for me
the version is the latest Xcode 7
Some things which might help you
Check deployment target in your project settings. Switching to lower versions of OS might help you get back all simulators.
Check your xcode version used in the command line tools. Go to Xcode -> Preferences -> Locations -> Command line tools
Quit Xcode and restart your system.
Hope these things help !!
I've been running my app on an iPhone 5 /iOS 6, but when I try to run it on an iPhone 4S / iOS6 I get "The run destination iOS Device is not valid for running the scheme NN. The Scheme contains no buildables that can be built for the architectures supported by the run designation device".
I've looked at previous postings on this but they involve issues with the Deployment Target.
In my case I've got the Base SDK set to 6.1 and the Deployment Target set to 5.0.
The iPhone 4 has got iOS version 6.0.1.
It was a bug in XCode, I closed and reopened Xcode and it started working.
I've noticed this sort of thing many many times now with Xcode with other problems, its very frustrating that the tool is so dodgy.
I had the same problem. The issue that i found is that , by mistake I had chosen iPad as deployment target due to which XCode showed that iPhone 5 is an invalid device. .
Hope it helps. Then I just changed the target to iPhone and it worked.
The run destination iPhone is not valid for Running the scheme.
Quit Xcode
Open Xcode
Clean project
Run project
It will work
This is some sort of memory issue sometimes.Close some application and try again.
Close Xcode too and reopen. Worked for me.
Cheers.
Quit and Reset Xcode can reslove most problem. The other cause is Device not support iPhone, you can
Target -> select scheme -> General -> Deployment Info -> Device-> select Universal or the current device you want.
In my case the problem was missing executable value selected into Scheme -> Profile -> Executable (e selected from the dropdown build configuration debug and executable the "application".app).
A simple solution.
1) Force quit X-Code
2) Force quit itunes
3) Reconnect iPhone
4) Open X-Code
Go to project info set development Target as 4.3 or 5.1.1 and same in target also.
I had this problem in XCode 9.0.1.
It seems that XCode does not refresh the list of connected devices.
You may notice that after disconnecting your device, you can still choose it as a target. So XCode may actually be trying to connect to a bogus device.
To fix this:
Edit the scheme.
Re-select the scheme's executable.
this seems to force XCode to update the list of connected devices.
If that did not work, try reconnecting your device (cable) before you do this.
Or perhaps, some other combination of disconnecting device, connecting device, and re-selecting the scheme's executable.
As a desperate measure, you may also try to change the cable that connects your mobile device to your pc.
But ideally... Xcode should be fixed.
Just Go to Devices -> The Intended device you wanted to run (I Was iPhone6 Simulator)-> Select the Device (I was selected iPhone6) -> Right Click-> Make sure the ‘Show the Run Destination Menu’ enabled.
For Me, it was enabled. I did, it worked.
I faced this issue in XCode 9, but later realised that for some reasons I had unchecked run destination in "Devices & Simulators" window
In my case, none of the answers given worked for me.
I was trying to setup TravisCI to my project and this is what i did:
Select Target > Edit Scheme > Build
Check the "run" option in the Tests target and the issue disappeared, i hope this help someone, i spent 2 days trying to fix this.
Other solutions might work for other scenarios but, in case using Xcode 11, I went into "Build Settings" of my test target and changed to universal under "Deployment"->"Targeted Device Family"
Select your project, Under Targets, select your main target, then on the Build Settings Tab, there is one field that says "Valid Architectures". Make sure "armv7" is also there. You probably only have armv7s right now.
I am using XCode 8.2.1 having same problem.
Solution:
->Go to Devices
-> Add additional simulators
->Right Click simulator u are using
->Show in Run Destination Menu <-Enable this Option
For me Xcode failed to copy symbols for connected device due to low disk space. First check if you have symbols connected device under /Users/$USERNAME/Library/Developer/Xcode/iOS\ DeviceSupport/.
Since I had iOS 8.3 (12F70) installed on my device the path for me was /Users/$USERNAME/Library/Developer/Xcode/iOS DeviceSupport/8.3 (12F70)/Symbols The size of this directory should be around 2.5GB.
When I got this issue the size was 484 KB.
To fix it I
Free up about 3GB of disk space. You can delete folders for any unsupported devices that you might have under /Users/$USERNAME/Library/Developer/Xcode/iOS\ DeviceSupport/
Disconnected device from Xcode and closed Xcode.
Removed the folder in above path (everything under 8.3(12F70).
Start Xcode and connected the device.
Xcode should start Copying symbols once done the size of the folder should be around 2.5GB
This happened to me because I switched branches in source control with unshared schemes.
My xcuserdata folder was git-ignored, and it contained a scheme I forgot to share. This meant I was trying to use a scheme that was from a completely different code branch.
I remade the scheme which fixed the problem, and marked it as shared so that it would be in the xcshareddata folder and checked into source control.
For my case, check the target -> Build Settings -> Search "Mach-O Type" and check the value, it should be Executable/Dynamic Library/Static Library. For other type values, the target could NOT be built and run.
This is similar to Kunal Gupta's comment, but I got this error after running an Xcode project on an actual iPad (the deployment target was changed to iPad and I wanted to run it on my iPhone simulator). Remember to change the deployment info after you use an actual device/simulator, especially when switching from iPad to iPhone.
Swift 3 or 4 Xcode 8 or 9
One thing you can do is click the Project file to open up General Settings, Capabilities etc.
Choose Build Settings
Search for Base SDK
Make sure debug AND release have the same build type.
I had debug set to ios 11.0 and release set to macOS 10.13
They must be the same in order to Archive
In my Case,
I open my iPhone here is the alert appearing in my iPhone for Trust and Don't Trust. I click on Trust. It works fine.
Switching to a different USB port and restarting Xcode solved the problem. Experienced this issue on iMac running Xcode 9.1 whenever I tried connecting any iOS device to one specific USB port. If your USB ports stopped working, check this.
Open the Apple Menu > About this Mac > More Info > System Report > USB and check that the device appears in the USB Device Tree. If it is not here try another USB cable.
I notice this with certain cable+device combinations (probably bad contact), restarting the XCode will only help for one or two runs and then it strikes again. Changing cable / device is the only long term solution worked for me.
In my case, this issue was fixed changing the Architectures (Build Settings --> Architectures) to Standard architectures - $(ARCHS_STANDARD)
Make sure to have arm64 armv7 armv7s on Valid Architectures.
In the case of iOS 13.x - What worked for me is unpairing my watch to my phone and repairing it to my iPhone. I wouldn't just unpair it via Bluetooth- I repeated the whole cycle as if I got a new watch. It took 10 mins to do the whole thing. When I ran my app again, it worked. From there, ensure all your Targets have the same sign in for identity.
Device Support Files is missing for device iOS version. Add it in XCode App Content path.
App Content Path is "contents/Developer/platform/iPhoneOS.platform/DeviceSupport"
Dowloaded support files from here and past them by creating folder of device version number there in app content path.
Go To General => Supported Destinations add IPhone or whatever platform you want run your app.
I encountered this issue while trying to run a watchOS app. After restarting both the Apple Watch and the iPhone, it displayed a different error message that informed me about the Developer Mode setting being turned off:
The run destination iPhone is not valid for Running the scheme 'My Watch App'.
To use Apple Watch for development, enable Developer Mode in Settings → Privacy & Security.
I turned on the Developer Mode setting, restarted Xcode, waited for a bit and it started working again.
Make sure your Xcode is up to date.
This might sound obvious. I tried all the answers presented in this threat and nothing would help. I used Xcode 12.0. After upgrading to 13.1, everything worked as expected.