If you found a K/N bug and want to make a small repro for the iOS simulator via the CLI that:
1. generates a K/N framework
2.. compiles a swift file and links against that framework
3. runs the resulting binary using the sim
I finally got a working setup for a bug I filed here:
https://github.com/JetBrains/kotlin-native/issues/4051