Reputation: 14864
I open my project in Xcode 6.1. When I try to run the project, the button is grayed out. When I try to go to Product > Clean
, the option is grayed out. When I look at the list of simulators, all I get is My Mac
instead of the usually iOS Device
. How do I get my simulators to come back?
Upvotes: 145
Views: 185601
Reputation: 1203
There are two more things that you may check.
You may refer this youtube video, for a step by step guide.
Upvotes: -1
Reputation: 153
You need to check
Upvotes: 1
Reputation: 2186
If anyone using Flutter face this problem, the solution is similar.
in your Runner app, Change the value in Minimum deployments
dropdown once to a random number and change it back to its default value.
That should bring the list of simulators and devices back.
Upvotes: 1
Reputation: 113
Product->Destination->Destination Architecture->Show Both
After that, you see all simulators
Upvotes: 3
Reputation: 634
Delete Derived Data Folder
Open Terminal at your project folder > run pod install
Problem will be solved !
Upvotes: -1
Reputation: 1691
Also check the iOS Deployment Target
under build settings.
Somehow the Deployment Target gets set to most latest SDK that won't have available simulators.
Select the available SDK version and simulator list should be back available again. Cheers!
Upvotes: 86
Reputation: 4452
I had the same problem with xCode 14.0.1. Replacing the target architecture from "arm64" to "$(ARCHS_STANDARD)" brought back the list of simulators.
Upvotes: 4
Reputation: 3273
After trying a lot of suggestions, the below command solved the issue for me.
Try to restart the simulator service:
sudo killall -9 com.apple.CoreSimulator.CoreSimulatorService
Upvotes: 1
Reputation: 434
In my case the problem was in Architectures parameter.
It was set to arm64
I just changed the value to Standard Architectures (arm64, armv7) - $(ARCHS_STANDARD)
Then pod install
Upvotes: 5
Reputation: 39
If you updated Xcode to 12.1. Completely quit Xcode and it will install components.
Upvotes: 4
Reputation: 1080
In my case I thought I created a new project using the iOS Framework template, but I inadvertently selected the macOS Framework template instead. This was preventing me from building the project for iPhone simulators. Deleting the project and recreating it, this time selecting the iOS Framework template, fixed the problem.
Upvotes: 1
Reputation: 332
Deployment Target version change to a lower one helped for me:
Window -> Devices and Simulators -> Simulators. Check what are the latest versions of existing simulators.
Then go to your project's Target. Under Deployment Info, change Target to the version you saw the latest within your simulators. Mine was set to iOS 13.6 when the simulator was iOS 13.5 only.
Upvotes: 10
Reputation: 6141
Try This, It worked like a charm! for me,
Follow below step
1) Clean Derived Data as show below,
rm -rf ~/Library/Developer/Xcode/DerivedData/
OR
Xcode---> Preferences--->Location--->Derived Data
2) In Deployment Info change Deployment Target
It's equal to or less then the SDK version of Xcode
3) Quit Xcode
4) Reopen Xcode you will see list of simulators
Hope this answer will help for someone.
Upvotes: 133
Reputation: 1060
Lower the Deployment Target version. For example you have set the target as iOS 13.4 but your Xcode version is lower and there is no iOS 13.4 installed simulator.
Upvotes: 2
Reputation: 1372
Just check your Deployment Target where XCode support it or not.
Upvotes: 5
Reputation: 60
Nothing worked for me, except
gem install snapshot
fastlane snapshot reset_simulators
Upvotes: 1
Reputation: 84
Nothing helped me so I downloaded the simulators for my deployment Target.
Download the simulators for your deployment Target
You can check Deployment target :
Hope it helps
Upvotes: 0
Reputation: 501
I simply Renamed my Xcode file in Application folder to something else and renamed it back to Xcode.
Worked
Upvotes: 0
Reputation: 343
After upgrading to Xcode 10.3, the list of simulators was empty. I rebooted and it was resolved.
This doesn't necessarily answer the OP's specific question, but this was the first place I ended up in researching my Xcode 10.3 upgrade issue.
Upvotes: 2
Reputation: 14063
If you just updated Xcode, you may need to restart your computer before simulators become available again.
Upvotes: 3
Reputation: 3863
For those coming from Unity, even if you manage to make them show up (by changing Build Settings > Supported Platforms
to iOS
it would not run in the simulator.
Instead, you need to select this Simulator SDK :
And make sure something other than Metal exist.
Then the simulator device list will be there from start.
Upvotes: 17
Reputation: 1421
I just needed a good, old fashioned restart the computer. When uninstalling and reinstalling XCode didn't do the job, I restarted out of pure frustration....lo and behold! After a restart, everything was as it should be.
Upvotes: 3
Reputation: 71
Sometimes the simulator you have might not be the simulator specified in Build Settings. Make sure that simulator package is downloaded for your IOS Deployment Target
Upvotes: 7
Reputation: 1847
Small but a effective solution. In my case i updated to my xcode to 9.2 version and simulators disappeared.
I found this solution and it worked for me and for others also.
**
Just quit your xcode and restart again. You will have simulators.
**
Upvotes: 4
Reputation: 1209
Solution: Build Settings -> Architectures -> Supported Platforms: changed from iphoneos to iOS
Confirmed works in Xcode Version 9.0 (9A235)
Upvotes: 11
Reputation: 763
In my case I had created a static library target for tvOS in Xcode 8.3.3, and the tvOS simulator was not showing up in the list. Eventually found out that TARGETED_DEVICE_FAMILY
in the Build Settings was set to 1,2
instead of 3
. Leaving this here incase anyone else encounters the same problem.
Upvotes: 1
Reputation: 167
For anyone struggling with this, I tried the mentioned options without success. Turns out all I needed to do was just quit and relaunch Xcode. Simple things can be annoying sometimes.
Upvotes: 1
Reputation: 3598
If Your problem is due to multiple (versions of) xcode
Then follow following steps
1. Cleaning Derived Data
Go to Xcode preferences -> Select location tab -> select little gray arrow on /Users/apple/Library/Developer/Xcode/DerivedData. You will be redirect to folder From there select Derived Data folder and Delete.
2. Completely Quite The Xcode and reopen
This will solve your problem. Happy coding :)
Upvotes: 6
Reputation: 1815
I had the same issue, generated from an imported project, the project had 10.3 as deployment target and I only had 10.0 installed, changing the deployment target to 10.0 solved my issues.
Upvotes: 1