Live data from Hacker News

iOS on QEMU

github.com

51–60 of 106 posts

Re: iOS on QEMU

#51
post #37

Earlier quoted context omitted.

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).

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.

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

#53
post #26
post #18

Earlier quoted context omitted.

These days, unfortunately, it is not possible. Well, you can virtualize MacOs, but you can not connect iOS device to it, nor you can run a virtual iOS device inside it. Apple went out of its way to deliberately disable physical phones connecting to a virtual MacOS. Any other USB device can be connected, but not an iphone.

I use this: https://github.com/kholia/OSX-KVM It works quite well for me. Simulator works fine (though graphics are slow) and so does connecting a physical phone (by passing through the USB controller).

I'd like to chime in here that it's very fucking frustrating that the best & most convenient free tools for virtualizing macOS aren't available on macOS, considering macOS has shipped with a damn hypervisor for years. Setting up a vanilla installation of arbitrary, older version of macOS for testing, or for maintaining build environments for long-support-life Mac software, should be one command, shipped with the dev tools. But no, instead it's "pay for a 3rd party solution" or "break the EULA and run it on Linux".

(yes, I'm aware of a bunch of fragile solutions involving VirtualBox, but they tend to be slowish, that's also supposed to be paid if you're using the extensions for commercial operation IIRC, and several versions of macOS/OSX remain a huge pain in the ass to set up on it regardless)

Re: iOS on QEMU

#54
post #52

Repo looks a little stale to me? I wonder how similar this is to the Xcode Cloud beta QEMU used by Apple someone spotted https://twitter.com/khaost/status/1410332951963869185?lang=e...

Unrelated, that one was developed entirely by apple

Re: iOS on QEMU

#55
post #28

Earlier quoted context omitted.

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".

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).

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

#56

Earlier quoted context omitted.

How do you load MacOS in VMWare? Where/how do you get the install media?

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 a…

Doesn't the EULA also prohibits hackintosh?

Re: iOS on QEMU

#57
post #28

This would be interesting to see, I'm guessing the implications are being able to build iOS projects without requiring a Mac at any stage of the development process.

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".

[deleted]

Re: iOS on QEMU

#58
post #28

This would be interesting to see, I'm guessing the implications are being able to build iOS projects without requiring a Mac at any stage of the development process.

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".

> 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

#59

Earlier quoted context omitted.

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).

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 arou…

Memory or storage. A couple big SATA drives in a Mac Pro work well for certain uses cases.

Re: iOS on QEMU

#60
post #37

Earlier quoted context omitted.

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.

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?

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

Post reply on HN