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

andylamax

05/11/2021, 8:33 PM
Hey there, I tried googling without much help, and I figured I should ask here. Is there a way, I can write and compile kotlin multiplatform apps that also targets ios from a linux machine? the reason is I can't afford a mac. or, is there any form of setup I can do on a PC or even install a non official mac os so that I can also build for ios? I know this has so little to do with kotlin, but I am guessing this is where I can get help from. Thanks in advance
🚫 2
s

Sam

05/11/2021, 9:07 PM
You need a mac to compile for mac/ios. There are CI services out there such as bitrise that can do ios builds. Some people do get away with running macOS on non-Apple hardware but such a “hack” is a violation of Apple’s Terms and Services and shouldn’t be discussed or encouraged here.
l

louiscad

05/11/2021, 10:26 PM
Well, if you're in EU, it's perfectly legal so long you don't sell the hack itself, so do what works for you. Marques Brownlee (a popular YouTube tech reviewer) made a Hackintosh and documented it, and still got review units from Apple after that, despite the lack of EU law protection voiding Apple clauses in the US.
For OSS, you can compile on GitHub Actions or Cirrus CI for free. For closed source projects, there's also many other paid competitors, as Sam said.
s

Sam

05/12/2021, 2:52 AM
In the EU Apple can’t restrict the licensing of its software to run only on its hardware? I’ve not heard of that. In the US they can and do so without a valid license it is considered copyright infringement. Regardless, Apple won’t be sending the police to your door or taking you to court unless you’re making a lot of money from infringing their copyrights.
l

louiscad

05/12/2021, 6:03 AM
Nope, they can't restrict you by law as a user.
a

andylamax

05/12/2021, 7:23 PM
Thank you all for your responses. I will look into Marques Bownlee's channel. I wanna write ios/macos apps so bad, that I think it is very possible to do so
l

louiscad

05/12/2021, 9:27 PM
Note that if you want to make a VM-less Hackintosh, you'll need to get macOS compatible parts/hardware. I personally think it's more suitable to get a base level M1 powered Mac Mini, or a previous gen one with an SSD, possibly second-hand. You can reuse all the peripherals (HDMI screen, keyboard, mouse) and it doesn't clutter your desk if you have another machine there.
a

Aitor

05/14/2021, 8:35 AM
otherwise you can always try to use this kind of tools: https://www.macincloud.com where you can “own” a mac online
👍🏼 1
2 Views