People, do I need help! I am making a demo multipl...
# multiplatform
r
People, do I need help! I am making a demo multiplatform application, backend, desktop, android, web and ios. I started developing on my trusty linux machine and I have android, desktop, web running without any problem. Today my mac came in. (I am NOT a mac user!) I installed java, intellij, and xcode, how the duck do I get the iosApp built and running in a emulator?
s
Have you tried checking your setup with KDoctor? https://github.com/Kotlin/kdoctor
s
A few weeks ago, we released the KMP plugin: https://plugins.jetbrains.com/plugin/14936-kotlin-multiplatform for IntelliJ IDEA and Android Studio that works on macOS. It includes a built-in wizard to help you create a project, preflight checks to assist in setting up the environment, and also supports generating run configurations for launching existing targets.
r
ROFL oh wow you dont want to know how much kdoctor finds
so kdocktor complains about xcode, the plugin with intellij finds it ok
s
kdocktor complains about xcode
Was it able to help you? If not, please send a recommendation by kdoctor. Also, do you see the iOS target in the dropdown menu next to the Run button? What happens when you try to run it?
r
I got it working, There was a difference between kdoctor and the intellij preflight check. kdoctor complains about missing cocoapods while preflight said all was fine. in the end I got it to work by running the iosMain from Xcode and not from intellij. it was 1 in the morning and I stopped 🙂
d
As a side note, Apple provides simulators, unlike Android emulators.