https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
i

Indrih17

11/21/2019, 12:10 PM
Hello. I am trying to make a small simple multiplatform library. https://github.com/indrih17/teaco/blob/master/teaco-mpp/build.gradle.kts I had a problem that klib files for iOS are not generated when the publishToMavenLocal task starts, and there are no publishing tasks for iOS in Gradle tasks. Please tell me what I'm doing wrong, I've been struggling with this problem for two days now.
i

ilya.matveev

11/21/2019, 1:27 PM
Hello! I've tried to publish the library from your project and the iOS klibs were built and published successfully. Could you run the build with
-i
flag and share a build log?
i

ilya.matveev

11/21/2019, 2:13 PM
Thank you! The problem is that you're trying to run the build on a Linux machine while a Mac machine is requierd to build an iOS library:
Copy code
Some Kotlin/Native targets cannot be built on this linux_x64 machine and are disabled:
    * In project ':teaco-mpp':
        * targets 'ios', 'iosSim' (can be built with a macos_x64 host)
i

Indrih17

11/21/2019, 2:20 PM
@ilya.matveev Can't I compile the ios version of the library and put it in maven without a MacBook?
i

ilya.matveev

11/21/2019, 2:21 PM
Yes
i

Indrih17

11/21/2019, 2:22 PM
Thank you so much