Hey there, I tried googling without much help, an...
# ios
a
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
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
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
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
Nope, they can't restrict you by law as a user.
a
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
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
otherwise you can always try to use this kind of tools: https://www.macincloud.com where you can “own” a mac online
👍🏼 1