News for hackers. Stuff that matters.
Re:Boot a Virtual iPhone via Apple's Virtualization.framework by a012 on Friday August 28, 2026 @09:48PM (#49486182)
You can test your application, game, website without a physical phone?
Re:Boot a Virtual iPhone via Apple's Virtualization.framework by leoh on Friday August 28, 2026 @09:53PM (#49486200)
Can do that with the simulator too
Re:Boot a Virtual iPhone via Apple's Virtualization.framework by refulgentis on Friday August 28, 2026 @09:59PM (#49486220)
Running on ported userspace components, with a shim, isn't the same as running on the OS in itself.

That really matters, sometimes.

But not the vast majority of the time.

(source: been coding iOS since pre-SDK iPhone OS 1.0)

Re:Boot a Virtual iPhone via Apple's Virtualization.framework by dingdongditchme on Friday August 28, 2026 @10:51PM (#49486460)
Is the simulator faster than this? I would suspect so.
Re:Boot a Virtual iPhone via Apple's Virtualization.framework by RussianCow on Friday August 28, 2026 @10:26PM (#49486346)
Can you give some examples of where it matters? I'm genuinely curious.
Re:Boot a Virtual iPhone via Apple's Virtualization.framework by bradfitz on Friday August 28, 2026 @10:50PM (#49486455)
Last I checked, VPN network extensions wouldn't run in the simulator.
Re:Boot a Virtual iPhone via Apple's Virtualization.framework by afavour on Saturday August 29, 2026 @05:55AM (#49488432)
It’s been years but I ran into a problem with a notification extension years ago. Worked fine on simulator, not on device. Turned out it was because I was using a HEIF image and (I think) the on-device extension was trying to use hardware decoding and didn’t have access to it. Meanwhile the simulator had no such sandboxing restrictions.

The difference doesn’t matter until it does, and then it’s infuriating to work out what’s going on.

Re:Boot a Virtual iPhone via Apple's Virtualization.framework by gitgud on Saturday August 29, 2026 @07:56PM (#49494373)
> The difference doesn’t matter until it does, and then it’s infuriating to work out what’s going on.

I love this quote, reminds me how annoying it can be when something isn’t reproducible locally… only in production…

Re:Boot a Virtual iPhone via Apple's Virtualization.framework by DonHopkins on Saturday August 29, 2026 @08:06AM (#49489208)
Testing AR apps, or any app that relies on hardware you can't simulate easily.

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

Re:Boot a Virtual iPhone via Apple's Virtualization.framework by cfn on Saturday August 29, 2026 @03:09AM (#49487634)
I have had instances where the app runs fine on the simulator but crashes on the device. This might solve that.