Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I choose an iOS simulator as the destination in Xcode?

Tags:

xcode

ios

I am an iOS noob. I had a project running on the iPhone simulator in Xcode 4.4. To resolve a different issue, I un-installed 4.4 and then installed 4.5.1. Now when I try to run my project on the simulator I get an error "Xcode cannot run using the selected device: No provisioned iOS devices are available with a compatible iOS version. Connect an iOS device with a recent enough version of iOS to run your application or choose an iOS simulator as the destination."

How do I choose an iOS simulator as the destination?

Where do I click?

like image 955
bernie2436 Avatar asked Oct 19 '12 06:10

bernie2436


People also ask

How do I select simulated device as destination in Xcode?

Click view-->show toolbar if you don't see it. Click on IOS Device and you should get a drop down menu of devices. The simulator should be in that list.

How do I run a specific iOS simulator?

Specifying a device​ You can specify the device the simulator should run with the --simulator flag, followed by the device name as a string. The default is "iPhone 13" . If you wish to run your app on an iPhone SE (2nd generation), run npx react-native run-ios --simulator='iPhone SE (2nd generation)' .

What are the two ways to access iOS simulator in Xcode?

The basic way to open a list of simulators is to use Xcode -> Window -> Devices and Simulators. Here you can create and manage all available simulators. But you cannot run them directly. You need to build your application on the simulator, and then you can run it.


1 Answers

There should be a menu in the top left region of the toolbar section of the IDE. It should have a run button, a stop button, and then the name of your app and a label saying IOS Device. Click view-->show toolbar if you don't see it. Click on IOS Device and you should get a drop down menu of devices. The simulator should be in that list.

like image 168
Bergasms Avatar answered Oct 19 '22 10:10

Bergasms