Doug Kavendek
Doug Kavendek

Reputation: 3694

Simulator SDKs missing in xcode build settings

I have found many tutorials (such as this one) that mention being able to set the base SDK for a project's build settings to use, say, the iPhone Simulator. I am running the latest version of Xcode but the only SDKs that seem to be available are MacOS and iOS. Even after downloading some of the older simulators from Preferences>Downloads, I don't see any additional SDKs available.

I don't know if I broke something, or if I'm not even supposed to be able to select any of the simulator SDKs as the base SDK. I'm still too new to Xcode to really know. From questions such as this, I'd assume that I should be seeing at least an "iOS Simulator" as an option.

I previously was trying to experiment with compiling via makefiles and so was installing various command line tools, so I'm not sure if something just messed up my environment. I tried uninstalling xcode and developer tools entirely and reinstalling from the latest version on the app store, but it doesn't seem like it changed anything. I can't even seem to get an existing project to build for the simulator, when a while back it used to be able to, so it doesn't even seem to matter which project I have open.

Did I break something, or am I just missing something obvious?

Upvotes: 2

Views: 1832

Answers (1)

rmaddy
rmaddy

Reputation: 318774

You are missing something obvious. :)

The Base SDK has nothing to do with running on a device or the simulator. Leave the Base SDK as "Latest".

To run your app in the simulator, notice the dropdown menu in the toolbar just to the right of the Play and Stop icons. In the dropdown, choose the target to build and then the device or simulator you want to run with. Once chosen, go to the Product menu and choose Run (Cmd-R).

Upvotes: 1

Related Questions