News for hackers. Stuff that matters.
Re:iOS on QEMU by pojntfx on Thursday September 16, 2021 @11:09AM (#28552776)
You can actually do this now, without emulation: https://github.com/tpoechtrager/cctools-port

Zig are also working on it: https://zig.news/monthly/zig-monthly-august-2021-ios-support...

The pioneer of software dictatorship will probably make this impossible or illegal as soon as it gains any traction though. And people will probably congratulate them for it in the name of "security".

Re:iOS on QEMU by colejohnson66 on Thursday September 16, 2021 @11:16AM (#28552893)
As a “closed iOS” advocate, I personally believe the ability to do development outside of a macOS is a great idea. I’ve long wanted to make iOS apps, but I don’t have the money to shell out for a Mac. Yes, Hackintoshes are a thing, but you need certain hardware to do so, and even then, it’s still difficult (last I checked).
Re:iOS on QEMU by zaptrem on Thursday September 16, 2021 @11:20AM (#28552950)
For casual app development I just run MacOS in a free VMWare instance on my Windows machine. It has no graphics acceleration but otherwise works flawlessly.
Re:iOS on QEMU by nine_k on Thursday September 16, 2021 @06:14PM (#28558427)
IIRC, macOS EULA expressly requires that the OS be run on Apple hardware. If it's run in emulation (which is permitted), the host must run on Apple hardware anyway.

Apple is not a software company, it's an electronic appliance company, like Samsung.

Of course, apple won't go after individuals who violate this provision. But is a cloud vendor or a CI vendor tried to pull that off, Apple would smash them.

Re:iOS on QEMU by toomuchtodo on Thursday September 16, 2021 @10:33PM (#28560588)
Are there any countries where this EULA term isn’t enforceable?
Re:iOS on QEMU by MinorTom on Friday September 17, 2021 @09:22AM (#28565171)
If you don't agree to the EULA you don't have a license to use MacOS at all, which means you downloading it is (in many countries) a crime.

The question whether or not a EULA is enforcable is only relevant for products you bought which have software preinstalled - it is often argued under First Sale (and similar) that the EULA isn't applicable.

Re:iOS on QEMU by toomuchtodo on Friday September 17, 2021 @11:53AM (#28566930)
Do you have any citations you can provide in this regard?
Re:iOS on QEMU by eins1234 on Thursday September 16, 2021 @01:08PM (#28554368)
Anyone aware of any options for Hyper-V? Last time I tried this it was pretty impractical to have VMWare/VirtualBox co-exist with Hyper-V for things like Docker and WSL2, but maybe that has changed?
Re:iOS on QEMU by Mogzol on Thursday September 16, 2021 @03:12PM (#28555943)
Newer versions of VMWare work under a Hyper-V host [1]. I'm not sure if macOS runs properly in that mode though. I also had some success a while back running macOS under WSL2 using KVM [2], though it was pretty buggy and a pain to set up.

[1] https://blogs.vmware.com/workstation/2020/05/vmware-workstat...

[2] https://github.com/kholia/OSX-KVM

Re:iOS on QEMU by dorfsmay on Thursday September 16, 2021 @12:40PM (#28553992)
How do you load MacOS in VMWare? Where/how do you get the install media?
Re:iOS on QEMU by barkingcat on Thursday September 16, 2021 @01:03PM (#28554287)
This has been possible for a long time. For the install media, Apple hosts them and will give you the dmg file for free.

The only concern is the terms of the EULA so that's why the earlier poster says "for casual development"

There are a lot of guides online, including "one command" shell/powershell scripts that will automatically pull down the right files for you, and use the vmware/virtualbox api to create the vm automatically, and patch the bootloader to get Catalina or Big Sur loading, etc - if past experience is any indication, people probably already have Monterey beta loading fine already.

again, it's not a matter of "how" it's whether you (or Apple lawyers) care about the EULA.

Re:iOS on QEMU by sdefresne on Thursday September 16, 2021 @02:24PM (#28555261)
Doesn't the EULA also prohibits hackintosh?
Re:iOS on QEMU by unnouinceput on Thursday September 16, 2021 @01:06PM (#28554346)
in addition to what @barkingcat said, for vmware to be able to boot a macos virtual machine you'll need it to unlock it for that OS. Search for vmware unlocker is a free utility that depends on your vmware version, run it once and you're done.
Re:iOS on QEMU by smoldesu on Thursday September 16, 2021 @04:02PM (#28556739)
I did this with QEMU, the performance is pretty fantastic under Linux.
Re:iOS on QEMU by late2part on Thursday September 16, 2021 @11:48PM (#28560991)
You ran/run modern macos in QEMU under linux? I didn't know that was doable...
Re:iOS on QEMU by smoldesu on Friday September 17, 2021 @11:49AM (#28566894)
It's very doable, it takes like 10 minutes if your internet is reasonably quick and if you're lucky you might even get GPU acceleration out of it. I used this to set mine up: https://github.com/foxlet/macOS-Simple-KVM
Re:iOS on QEMU by milesvp on Thursday September 16, 2021 @03:36PM (#28556311)
I can appreciate if this is too much money for you, but I recently bought a 2014 macmini i7 16GB and 512SSD on ebay for $440 shipped to my door. I needed something that could handle bigsur for some app development, and that was the best $/effort solution I found. Add another ~60 for a usb switch and cables, and I can easily switch between my primary and mac.

In general, there's a pretty good second hand market for macminis, and if you shop around you can probably get something usable for under $350 shipped.

Re:iOS on QEMU by nbzso on Thursday September 16, 2021 @03:33PM (#28556258)
Actually it is easy to build Hackintoshes, even with AMD. Catalina is running stable with Apple ID and all the bells and whistles. In the past when Apple ignored updating Mac Pro Trashcan for several years, we have build a monstrous PC with Hackintosh to run FinalCut. Search for Open Core Catalina.
Re:iOS on QEMU by Jyaif on Thursday September 16, 2021 @08:04PM (#28559461)
I had a hackintosh back in 2009, and recently decided to go at it again and built a custom PC with all the components from https://www.tonymacx86.com/buyersguide/building-a-customac-h.... After a week I never managed to get the OS to install without the installation process crashing towards the end, so it's not "actually" easy even if you know your way around a computer.
Re:iOS on QEMU by nbzso on Friday September 17, 2021 @02:22AM (#28561910)
I started building Hackintoshes in early 2008, just from curiosity. I remember successfully running 10.4 on a netbook. https://archive.org/details/mac-os-x-tiger-10-4-8-hackintosh...

https://www.youtube.com/watch?v=juCz2ZzNOAY

Believe me now is so damn easy that it's funny. Now you have a lot of tools to load kexts and configurations. In the old days we loaded kexts manually:)

Re:iOS on QEMU by s_dev on Thursday September 16, 2021 @05:19PM (#28557769)
The problem is mac OS now uses M series chips. You'd be developing legacy code.
Re:iOS on QEMU by usui on Thursday September 16, 2021 @05:41PM (#28558041)
It's not legacy code until the day Apple definitively axes Intel models. The writing is on the wall yes, but they are still selling Intel Macs and they are not deprecated yet. The majority of development still happens on Intel Macs.

I built an 11th-gen Rocket Lake 128GB Hackintosh with Thunderbolt Display support+2 LED Cinema Display recently and it's been great. Thunderbolt 3 support on a Hackintosh has been nice. Just hoping for Thunderbolt 4/Maple Ridge drivers/11th-gen iGPU drivers if ever.

Re:iOS on QEMU by s_dev on Friday September 17, 2021 @10:15AM (#28565749)
>It's not legacy code until the day Apple definitively axes Intel models.

You can't run Xcode 13 on any Intel mac OS machine.

Re:iOS on QEMU by brirec on Friday September 17, 2021 @11:54PM (#28573534)
That’s not true, Xcode 13 still fully supports Intel Macs.
Re:iOS on QEMU by IncRnd on Thursday September 16, 2021 @06:29PM (#28558605)
What motherboard/gpu did you use for that?
Re:iOS on QEMU by usui on Thursday September 16, 2021 @07:21PM (#28559066)
Gigabyte Z590 Vision D
Re:iOS on QEMU by IncRnd on Thursday September 16, 2021 @08:27PM (#28559607)
Thank you.
Re:iOS on QEMU by usui on Thursday September 16, 2021 @10:31PM (#28560576)
Forgot to mention it's a Radeon R9 270, quite old. Might want to upgrade to Radeon 6900 XT in the future if 8K monitor on macOS becomes possible
Re:iOS on QEMU by jakeinspace on Thursday September 16, 2021 @02:21PM (#28555223)
I've never been an iOS or Mac developer, but I have had a few 5,1 Mac Pros. The release of m1 mac minis pretty much killed the used market for those, but you may still be able to find one for cheap. I was able to find a few 12-core 24-thread dual xeon models for around $250, but had to be patient. Add in 64GB of ECC RAM and an SSD upgrade, to Mojave or Catalina, and you have a beefy enough development system for around $500. Those 12c/24t will get smoked by an m1 mini for a lot of tasks, but if memory matters then it's probably still the best bang for the buck. Also, you'll need to find a GPU....
Re:iOS on QEMU by bluedino on Thursday September 16, 2021 @03:06PM (#28555864)
Memory or storage. A couple big SATA drives in a Mac Pro work well for certain uses cases.
Re:iOS on QEMU by setpatchaddress on Thursday September 16, 2021 @08:46PM (#28559731)
> The pioneer of software dictatorship will probably make this impossible or illegal as soon as it gains any traction though

What does Microsoft have to do with this?

Re:iOS on QEMU by saagarjha on Thursday September 16, 2021 @12:30PM (#28553829)
Building apps without the use of Apple’s SDK is already considered to be against the developer program terms.
Re:iOS on QEMU by 2OEH8eoCRo0 on Thursday September 16, 2021 @04:50PM (#28557382)
That's funny. It's against my terms to not use my software!
Re:iOS on QEMU by Razengan on Thursday September 16, 2021 @03:01PM (#28555810)
> The pioneer of software dictatorship

Consoles were doing that shit way before, unless you redefine what counts as “software” or “dictatorship”

Re:iOS on QEMU by kelnos on Thursday September 16, 2021 @08:20PM (#28559572)
I do think consoles should be required to be open (as I think all phones should be), but I am sympathetic to the idea that consoles are somehow in a different class than phones or desktop/laptop computers. Consoles feel like purpose-built game machines, whereas phones feel like general purpose computers, albeit small ones.

Really, though, I don't have a good reason why I think it might be ok to lock down a purpose-built game machine. So maybe that's just not ok either.