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

Skolson5903

08/01/2020, 11:59 PM
Anybody got
Copy code
kotlin("native.cocoapods")
working on windows? I have Ruby and libcurl installed, and ruby installed cocoapods just fine, but when the plugin tries to use "gem" it fails. On windows it needs to run gem.bat instead, and I have no idea if there is any way to configure this in the plugin. As a test I took out the failing plugin and put this snippet in to verify that gradle can run the stuff, and it works:
Copy code
project.exec {
    println("ruby gem version")
    commandLine("gem.cmd", "-v")
}
project.exec {
    println("pod version")
    commandLine("pod.bat", "--version")
}
This displays on the gradle console during sync, So i know both would work if I could get the plugin to use them. I tried to cheat and make shortcuts to these, but that won't work either, so I'm curious if anyone else has it. Moving to linux is not a short-term option for me🙂 . Thanks in advance for any info
In case it's useful here's what displays during sync from the snippets above:
Copy code
ruby gem version
3.1.2
pod version
1.9.3
s

Sam

08/02/2020, 3:27 AM
Mac and iOS development is only available on macOs platforms.
☝️ 1
s

Skolson5903

08/02/2020, 6:10 PM
My understanding was that basics like these utilities wok if ruby and libcurl are installeds, and the pod installed with gem, which all worked. See this link Using cocoapods on windows
15 Views