Katedral Pillon
Katedral Pillon

Reputation: 14864

Xcode project not showing list of simulators

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

Answers (30)

arjun
arjun

Reputation: 1203

There are two more things that you may check.

  1. Check if the iOS Simulator Images are downloaded. enter image description here

  2. Base SDK, in the Build Settings, should be set to iOS. enter image description here

You may refer this youtube video, for a step by step guide.

Upvotes: -1

Vinod Supnekar
Vinod Supnekar

Reputation: 153

You need to check

  1. Minimum deployment target 2.Inside Xcode -> Device and Simulator tab -> Select any simulator -> -> See details of simulator -> Inside details check for "Show run destination" --> Make it "Always" instead of "Automatic". enter image description here

Upvotes: 1

Mohamed Irshad
Mohamed Irshad

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

Product->Destination->Destination Architecture->Show Both

After that, you see all simulators

enter image description here

Upvotes: 3

Nipun
Nipun

Reputation: 634

Go Preferences > Locations enter image description here

Delete Derived Data Folder

enter image description here

Open Terminal at your project folder > run pod install

Problem will be solved !

Upvotes: -1

shshnk
shshnk

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!

enter image description here

Upvotes: 86

Hyndrix
Hyndrix

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

Keshav
Keshav

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

Radomir Epur
Radomir Epur

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 enter image description here

Upvotes: 5

irfan
irfan

Reputation: 39

If you updated Xcode to 12.1. Completely quit Xcode and it will install components.

enter image description here

Upvotes: 4

shoe
shoe

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

liudasbar
liudasbar

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.

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.

deployment-target

Upvotes: 10

Jaywant Khedkar
Jaywant Khedkar

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

Derived Data

2) In Deployment Info change Deployment Target

It's equal to or less then the SDK version of Xcode

enter image description here

3) Quit Xcode

enter image description here

4) Reopen Xcode you will see list of simulators

enter image description here

Hope this answer will help for someone.

Upvotes: 133

Onur Tuna
Onur Tuna

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

Rahul Panzade
Rahul Panzade

Reputation: 1372

Just check your Deployment Target where XCode support it or not.

Upvotes: 5

Jinesh
Jinesh

Reputation: 60

Nothing worked for me, except

gem install snapshot

fastlane snapshot reset_simulators

Upvotes: 1

Himani C.
Himani C.

Reputation: 84

Nothing helped me so I downloaded the simulators for my deployment Target.

  • Beside play button and target name where simulator is chosen,
  • Click the simulator to see the simulator list window.
  • Click on the last button is "Download Simulators"
  • Download the simulators for your deployment Target

    You can check Deployment target :

  • Below play button 1st tab i.e. Project navigator, Click it and click on Project name
  • Select your target > General tab > Deployment Info > Deployment target.

Hope it helps

Upvotes: 0

TilAye
TilAye

Reputation: 38

Install iOS Simulator if you're missing one.

Click here to see how.

Upvotes: 1

Azim
Azim

Reputation: 501

I simply Renamed my Xcode file in Application folder to something else and renamed it back to Xcode.

Worked

Upvotes: 0

PJSimon
PJSimon

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

ScottyBlades
ScottyBlades

Reputation: 14063

If you just updated Xcode, you may need to restart your computer before simulators become available again.

Upvotes: 3

5argon
5argon

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 :

enter image description here

And make sure something other than Metal exist.

enter image description here

Then the simulator device list will be there from start.

Upvotes: 17

Mizmor
Mizmor

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

Tarun
Tarun

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

Aklesh Rathaur
Aklesh Rathaur

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

xuzepei
xuzepei

Reputation: 1209

Solution: Build Settings -> Architectures -> Supported Platforms: changed from iphoneos to iOS

Confirmed works in Xcode Version 9.0 (9A235)

Upvotes: 11

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

user3752049
user3752049

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

dip
dip

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.
enter image description here

2. Completely Quite The Xcode and reopen

This will solve your problem. Happy coding :)

Upvotes: 6

Ahmed Awad
Ahmed Awad

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

Related Questions