Live data from Hacker News

iOS on QEMU

github.com

21–30 of 106 posts

Re: iOS on QEMU

#21
post #5

> If you are passionate about iOS and kernel exploitation So is the main use-case to find bugs in iOS or are there other major use-cases I'm not thinking about? The only other use case I can think of is setting up a click-farm, or paid-review farm where you give positive reviews for apps for a small fee.

iOS developers could iterate on their code entirely in linux is probably the popular use case.

Re: iOS on QEMU

#22
post #20

Earlier quoted context omitted.

Could give the librem 5 or PinePhone a big boost. But it would not help with battery life.

I think the number of people who have a Librem phone but want to run iOS on it is basically zero.

Wrong. There are people who would like hardware kill switches but are required to run either iOS or Android apps for work. With iOS in a VM, you could truly "log out of work" and shutdown that part of your phone when not needed without carrying a second work-specific device.

Re: iOS on QEMU

#23
post #18

Earlier quoted context omitted.

I did this exact think back in 2012 with a PhoneGap/Apache Cordova app. It had to use Xcode to run the app in the iOS Emulator. So I spun up a virtual machine on my Linux box. It worked extraordinarily well! In the case of the poster you are replying to. Yes, Swift is open source and there are compilers for other platforms. The problem comes in with Apple's SDK and their proprietary libraries. Those are what are requ…

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.

VmWare Player with USB configured to version 2.0 did the trick for me. I tested it with an iPAD Pro and iOS 14. The VM was running the newest macOS release from a few months ago.

Re: iOS on QEMU

#24
post #18

Earlier quoted context omitted.

I did this exact think back in 2012 with a PhoneGap/Apache Cordova app. It had to use Xcode to run the app in the iOS Emulator. So I spun up a virtual machine on my Linux box. It worked extraordinarily well! In the case of the poster you are replying to. Yes, Swift is open source and there are compilers for other platforms. The problem comes in with Apple's SDK and their proprietary libraries. Those are what are requ…

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.

We have iPhones connecting to macOS VMs for our CI system and have never had any issues with it?

Re: iOS on QEMU

#25
post #18

Earlier quoted context omitted.

I did this exact think back in 2012 with a PhoneGap/Apache Cordova app. It had to use Xcode to run the app in the iOS Emulator. So I spun up a virtual machine on my Linux box. It worked extraordinarily well! In the case of the poster you are replying to. Yes, Swift is open source and there are compilers for other platforms. The problem comes in with Apple's SDK and their proprietary libraries. Those are what are requ…

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.

a motivated individual can still accomplish it, there are multiple ways documented on the web if you google a little.

its however not permissable, as you cannot buy apple software without agreeing to their licence, which disallows running it on anything but apple hardware.

for private fun projects: possible

for professional things: a very bad idea

Re: iOS on QEMU

#26
post #18

Earlier quoted context omitted.

I did this exact think back in 2012 with a PhoneGap/Apache Cordova app. It had to use Xcode to run the app in the iOS Emulator. So I spun up a virtual machine on my Linux box. It worked extraordinarily well! In the case of the poster you are replying to. Yes, Swift is open source and there are compilers for other platforms. The problem comes in with Apple's SDK and their proprietary libraries. Those are what are requ…

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

Re: iOS on QEMU

#27
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.

We have iPhones connecting to macOS VMs for our CI system and have never had any issues with it?

Same, I have multiple iPhones connected to a VM running on ESXi on non-Apple hardware.

Re: iOS on QEMU

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

Re: iOS on QEMU

#29
> This project is a fork of the official QEMU repository

Why isn't it _actually_ a fork though? I don't like when projects do this and don't actually make it a fork.

Re: iOS on QEMU

#30
post #9

Earlier quoted context omitted.

You'd need to emulate macOS hardware, not iOS, to do that. In that sense, what you describe is already possible (running Xcode in a macOS VM on commodity hardware).

I did this exact think back in 2012 with a PhoneGap/Apache Cordova app. It had to use Xcode to run the app in the iOS Emulator. So I spun up a virtual machine on my Linux box. It worked extraordinarily well! In the case of the poster you are replying to. Yes, Swift is open source and there are compilers for other platforms. The problem comes in with Apple's SDK and their proprietary libraries. Those are what are requ…

Technically those were simulators for iOS, not emulators. Lots of things behaved a little different on the phone itself.
Post reply on HN