No simulators available to play in Xcode

Help please, I'm stuck.

No simulators appear as a play option for my Unity app. In Xcode's scheme menu dropdown it doesn't show any sims (just "No Devices" and "Build: Any iOS device (arm64)"), the play button gives the error "A build only device cannot be used to run this target." and suggests choosing a simulated device but I can't figure out how to choose a simulated device... probably something silly, but I'm beside myself.

The app was built from Unity and the Xcode project name is called "Unity-iPhone." Maybe I need to make a new project that is configured differently?

I have been successfully building archives in Xcode and pushing them to TestFlight for several months to multiple devices including ipads... I really just need the simulator now for App Store screenshots and previews.

Here is what I have tried so far:

    1. I've installed iOS 14.0 Simulator component from Preferences
    1. I have a long list of simulators in Simulators and Devices
    1. As an example, the iPhone 11 Pro Max runs iOS 14.0.1 but doesn't appear.
    1. I'm running Xcode 13.2.1

Maybe I just need to install a later simulator component? I'm going to try getting the latest while this soaks. Thanks!

Answered by BigL in 741967022

Fixed! Thanks to a friend. Had to change the target SDK in Unity -> Build Settings ->Player Settings -> Under Player, Other Settings, Configuration.

Accepted Answer

Fixed! Thanks to a friend. Had to change the target SDK in Unity -> Build Settings ->Player Settings -> Under Player, Other Settings, Configuration.

I did same but not worked for me

The Unity player settings change will only work if the app is 2D, per this post: https://developer.apple.com/forums/thread/12032?answerId=840010022#840010022

No simulators available to play in Xcode
 
 
Q