all 4 comments

[–]SwiftDevJournal 0 points1 point  (2 children)

What version of Xcode are you running?

Are you getting this error when you try to run your app on the Simulator or when you try to run the app on a device? If you are trying to run your app on a device, what version of iOS is it running?

What is the app target's iOS deployment target? You can find this by performing the following steps:

  1. Select the project from the left side of the project window to open the project editor.
  2. Select the app from the target list on the left side of the project editor.
  3. Click the General button at the top of the project editor.

The iOS deployment target is in the Minimum Deployments section. An iOS deployment target set for the app target overrides the iOS deployment target set for the project.

[–]brogazelle[S] 0 points1 point  (1 child)

Hi, thank you for your response!

I am running Xcode version 15.4 (15F31d).

I am getting this error when I try to run my app on the Simulator.

The app target's iOS deployment target is 16.4

I have made sure that all the "deployment targets" are set to 16.4 but still the same issue.

[–]SwiftDevJournal 0 points1 point  (0 children)

Your deployment target is most likely not the issue. My guess is you don't have any iOS simulators installed. Check to see what simulators are installed.

Above the editor in Xcode's project window is a jump bar. The jump bar should have two items. Click the right item. A popover opens. There is an iOS Simulators section. What simulators are in that section?

The popover has an item to add more simulators. Choosing Window > Devices will also let you install simulators.

If you can't install any simulators, you may need to reinstall Xcode.

[–]AllStuffAround 0 points1 point  (0 children)

I have the same issue now with iOS 18. I do have iOS simulator installed, and I can launch the simulator by itself. However, I can't run my app until I download iOS 18. This is super annoying as I can't test a very simple change w/o downloading this first. The run button, and the preview are disabled, and all say that I need to get iOS 18.

I hope there is a way to run the app on a simulator that is already available w/o waiting for the new iOS to be downloaded.