iOS Application template in KMM Android Studio plugin can't be selected

Trying to select the template will show the option in this list, but there are no settings, and if you press OK at the bottom of the window it goes away. There doesn’t seem to be an option to add this configuration.

This happens in the latest stable and beta releases of Android Studio (4.1.2 and 4.2 respectively) on macOS (both Apple Silicon and Intel). I have Xcode installed.

Is there a solution to this, or a workaround to run KMM apps on iOS?

Nevermind, it worked after I connected my iPhone to the Mac and built the .xcodeproj from Xcode. Building from Xcode might not be necessary for this to work though, I think it’s just the presence of the connected device that did it.