Closed Adriannatsu closed 5 years ago
Compiler clearly says that "Target 'iOS' for platform ios_x64 is ignored during build on this mingw_x64 machine. You can build it with a macos_x64 host." Building for Apple targets is supported on macOS hosts only.
When I will run below command in terminal that time getting this error in windows 10.
gradlew :sharedNative:build
Some Kotlin/Native targets cannot be built on this mingw_x64 machine and are disabled: In project ':sharedNative': target 'ios' (can be built with a macos_x64 host)
I am using windows10 OS for and create ios/android build
Please help me.
Hello, @anilthummar! This is expected behavior, as iOS targets require a Mac host machine. You can find more details here.
Thank you @artdfel for the updates.
I'm following the tutorial in https://kotlinlang.org/docs/tutorials/native/mpp-ios-android.html and building a multiplatform Kotlin/Native using Android Studio. However, I met the problems of when I import platform.UIKit.UIDevice it appears to be unresolved reference.
Other than that, I can't get the output framework after compiling. This is my build.gradle of the SharedCode module:
and when I run the task packForXcode,
I didn't get the output framework in my SharedCode/build folder.