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

bmo

02/15/2021, 3:26 PM
Hello, I'm sorry if this question has been asked before but I couldn't find an answer (either on the web or here). I understand that iOS and MacOS source sets can only be compiled from a Mac for legal reasons (Apple being Apple...) Yet, I'm on Linux and I would like to be able to contribute to the iOS code (even if not compiling) but when I sync a project with a pod dependency, I cannot import the dependencies and I see this in the command line :
Copy code
> Task :module:podGenIOS SKIPPED
> Task :module:podSetupBuildPodDependencyIphonesimulator SKIPPED
I suspend this is linked to me not being able to see the dependencies. Is there a way for me to force Kotlin to generate the bridge (or at least let IntelliJ know about it) so that I can develop for iOS in Kotlin MPP without actually buying a Mac ?
a

Artyom Degtyarev [JB]

02/16/2021, 6:28 AM
Hello, @bmo! Those tasks are not working correctly, because they hardly depend on the CocoaPods dependency manager. At the moment, I was not able to find any instruction on how to install and use it from Linux machine.
b

bmo

02/16/2021, 7:01 AM
Hello @Artyom Degtyarev [JB], thanks for the answer, I have no idea how cocoapods works TBH but I installed the gem without any issues. I'll look more into it and let you know if I find something
@Artyom Degtyarev [JB], it seems that doing
Copy code
sudo apt install ruby2.7-dev
sudo gem install cocoapods
does the trick. It appears that I have cocoapods manager installed on my machine and I can execute
pod
commands on my Linux machine. Is there a way I can force the task
podInstall
to execute and not skip ?
a

Artyom Degtyarev [JB]

02/17/2021, 11:26 AM
AFAIK, the answer is no bc those tasks relies on the Xcode. @Yaroslav Chernyshev [JB], can you please take a look?
😞 1
b

bmo

02/17/2021, 1:36 PM
Thank you, I'll wait on Yaroslav's answer to see if I can be unblocked
I tried manually to do a
pod gen
on linux to generate the synthetics that is there on Mac OS and it works. Therefore, I don't know why this is a skipped step on Linux. Also, it appears that I cannot get (even on Mac OS) the
import cocoapods.***
to work no matter what I try
3 Views