https://kotlinlang.org logo
n

Nikola Milovic

05/21/2021, 12:55 PM
I am not fully understanding the KMM setup guide.
If you need to write iOS-specific code and run an iOS application
, so on a Linux machine I can only write android specific code? My idea is to have domain/data layers be shared and only separate UI for IOS/ Android. Android with Jetpack compose and IOS probably swiftUI (which would require XCode). From my understanding so far, I need to develop on MacOS if I want to both target IOS and Android at the same time? Can someone help clarify this situation
j

Javier

05/21/2021, 1:02 PM
You can't build iOS things on Linux or Windows, so you need to use a macOS machine
Same as Flutter for example
n

Nikola Milovic

05/21/2021, 1:06 PM
Then how do you develop both simultaniously? Do you have a mac next to your pc and constantly push and pull the object to github and develop on two computers?
m

mkrussel

05/21/2021, 1:18 PM
You can develop Android on a Mac OS.
n

Nikola Milovic

05/21/2021, 1:19 PM
@mkrussel So basically to do both at the same time, you'd have to use a MacOS?
j

Javier

05/21/2021, 1:23 PM
macOS you can create apps for linux, all apple OS android and jvm
windows you can create apps for linux, windows android and jvm
So in your case, you need macOS
a

andries.fc

05/21/2021, 1:30 PM
Quick question. Is there a way to virtualise macOS? at least from a compiler perspective would lessen the burden having to fork out 💸 .
j

Javier

05/21/2021, 1:31 PM
You can use macOS in virtualbox in Windows
🙏 1
Not sure about it is legal or no TBH
r

Robert MacLean

05/21/2021, 2:01 PM
Could use a service like MacStadium: https://www.macstadium.com or have it in your build pipeline: https://devblogs.microsoft.com/devops/cloud-hosted-mac-agents-for-ci-cd-pipelines/
i

iamthevoid

05/21/2021, 7:05 PM
@andries.fc check this https://www.darlinghq.org/
n

Nikola Milovic

05/22/2021, 7:40 AM
Thank you! I'll check these out
2 Views