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

Akram Bensalem

06/10/2021, 4:03 PM
Hello, Today I update the KMM plugin and the android studio And retry again to build a new KMM project. The project build and it works great (this is the first time that the default kmm project build successfully from the beginning ♥️) But I have a problem is that I don't have macOS and I want to modify the iOS UI code How to achieve this using windows ?!
b

borisdamato

06/10/2021, 6:11 PM
Hi! I’m afraid that’s not possible, building the iOS target of a KMM project requires xcode and thus MacOS. It’s mentioned in the first step of the setup instructions https://kotlinlang.org/docs/mobile/setup.html
If you also want to write iOS-specific code and run an iOS application on a simulated or real device, use a Mac with a macOS. These steps cannot be performed on other operating systems, such as Microsoft Windows. This is due to an Apple requirement.
😢 1
l

louiscad

06/13/2021, 7:19 AM
Hello @Akram Bensalem, you can edit the iOS code on Windows or Linux as well by using CompleteKotlin, a Gradle plugin I made. However, to run the code, Xcode is required, which is only available on macOS. For that, you can use CI services so you don't need to use macOS to perform the build.
😍 1
j

Joffrey

08/17/2021, 1:45 PM
OMG I needed this so much, thanks @louiscad!
simple smile 1
2 Views