\

Boot a Virtual iPhone via Apple's Virtualization.framework

153 points - yesterday at 11:02 PM

Source
  • root9876

    today at 12:44 AM

    > during iOS setup, don't pick Japan or the EU as your region (extra regulatory checks the VM can't satisfy)

    I'm curious what are these checks

      • benoau

        today at 1:35 AM

        It will be to prevent access to third-party app stores as both the EU and Japan legislated they must be allowed.

        > In a support document about alternative app marketplaces in the EU, Apple explained that “device eligibility for alternative app marketplaces is determined using on-device processing with only an indicator of eligibility sent to Apple.” In practice, iOS users in the EU who want to install alternative marketplaces will need to set the country or region of their Apple ID to an eligible country or region. Moreover, they will also need to be physically located in supported EU countries.

        > In the case iOS users in the EU leave eligible regions, Apple will offer a “grace period” until apps downloaded from alternative app stores can no longer be updated. “If you’re gone for too long, you’ll lose access to some features, including installing new alternative app marketplaces. Apps you installed from alternative app marketplaces will continue to function, but they can’t be updated by the marketplace you downloaded it from,” the company explained.

        https://www.thurrott.com/apple/298862/apple-adds-some-condit...

          • dingdongditchme

            today at 2:48 AM

            Wait so a third party app-store is allowed in the EU? I was not aware these even existed...

              • xkgt

                today at 3:36 AM

                It is wild that Apple finds it cheaper to build and maintain different App store behaviors than to simplify and make alt app stores available in all markets. Other governments/markets don't care?

                  • benoau

                    today at 4:01 AM

                    It's a very slow process, first there is investigations, then legislation, then enactment, then enforcement which is separately a very slow process. It requires a lot of willpower to get and keep the ball rolling and in fact nobody has even achieved the full extent of what they require yet! The EU may still be years away from meaningful compliance, Japan has only taken baby steps forming a new bureau just to enforce compliance of two companies widely accused of malicious compliance.

                    And then there is additional discouragement and pressure in the form of sanction and trade deal threats for regulating American tech platforms.

                    • tonyhart7

                      today at 3:39 AM

                      "Other governments/markets don't care?"

                      its the least of their problems

                        • grim_io

                          today at 4:04 AM

                          There's an endless supply of bodies of water to be renamed.

          • astafrig

            today at 2:41 AM

            In addition to the third-party installation capability mentioned by siblings, Japan also has a regional capability for reassigning the side button to a third-party voice assistant (`com.apple.developer.side-button-access.allow`).

            • rootnod3

              today at 1:14 AM

              For Japan it might be the Felica chip.

                • koito17

                  today at 3:26 AM

                  That would surprise me. I don't recall having to change my iPhone's region after moving to Japan. Transport IC cards in Apple Pay have "just worked".

                  I am vaguely aware that some phone manufacturers silently remove certain NFC hardware (or disable some driver) in order to avoid paying Sony patent fees. Apple doesn't seem to do that, though.

          • catlifeonmars

            today at 4:02 AM

            [delayed]

            • hamandcheese

              today at 1:02 AM

              This seams neat, but I'm not sure I understand the purpose/difference between this and using the iOS simulator.

                • restes

                  today at 1:07 AM

                  The iOS Simulator consists of (some of) the userspace components of iOS compiled to run on macOS. This would be a full iPhone image running as-is via virtualization.

                    • RussianCow

                      today at 1:43 AM

                      That explains the difference, but what's the purpose?

                        • whynotmaybe

                          today at 2:19 AM

                          The simulator doesn't have a camera. The android emulator allows to configure the camera and use a picture, it's very handy to test your qr/barcode reader without needing to use a physical device. Maybe this also allows to use an image as camera?

                          • gcampos

                            today at 2:22 AM

                            You cannot run Network Extensions on the simulator

                            • a012

                              today at 1:48 AM

                              You can test your application, game, website without a physical phone?

                                • leoh

                                  today at 1:53 AM

                                  Can do that with the simulator too

                                    • refulgentis

                                      today at 1:59 AM

                                      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)

                                        • dingdongditchme

                                          today at 2:51 AM

                                          Is the simulator faster than this? I would suspect so.

                                          • RussianCow

                                            today at 2:26 AM

                                            Can you give some examples of where it matters? I'm genuinely curious.

                                              • bradfitz

                                                today at 2:50 AM

                                                Last I checked, VPN network extensions wouldn't run in the simulator.

                                • VladVladikoff

                                  today at 1:54 AM

                                  Spam. Click farms. Etc.

                                    • trollbridge

                                      today at 1:57 AM

                                      It would also make testing far easier. I got bit with something that failed on real life iPhones with language set to es_US that worked fine on the simulator.

                                  • leoh

                                    today at 1:54 AM

                                    If functional, you can download apps from the App Store, sign in to iCloud.. probably do a bunch of agentic stuff as if you had a real device

                                      • Sajarin

                                        today at 2:06 AM

                                        Looks like apple services compatibility is not currently supported for this [0]

                                        [0] https://github.com/Lakr233/vphone-cli/discussions/175

                                          • rvz

                                            today at 3:41 AM

                                            Exactly. It means it cannot download apps from the App Store or use Apple services and Apple knows this deliberate limitation.

                            • speedyapoc

                              today at 3:21 AM

                              Looks like this tool can provide a jailbroken environment for the latest iOS versions whereas one does not exist on iOS simulator or a real device

                              • ChrisMarshallNY

                                today at 2:13 AM

                                The simulator is a completely different OS. It may even still be using Intel.

                                I always figured that Apple never set up a true emulator (like what Android does), because they didn't want people exploring their OS with a debugger.

                                  • kridsdale1

                                    today at 2:18 AM

                                    Incorrect. The iOS simulator is and always has been, simply iOS frameworks running fully natively on macOS. It’s best to think of it as an alternative window managers but the apps are native Mac processes. They can be seen and debugged via the terminal using top and ps and lldb alongside all other processes. They just present gui via the Simulator Mac app container.

                                    They do not live in a VM and are certainly not emulated at an instruction set level. They are Mac apps.

                                      • ChrisMarshallNY

                                        today at 2:23 AM

                                        Ah. That makes sense.

                                        I would think that "Mac apps," means that they are, actually, a different OS (I actually already knew that, which was why I said what I said. The Intel thing was a spitball).

                                        But one of the few joys geeks get, these days, is telling other geeks they are wrong, so I feel as if I’ve done my bit to make this a happier place.

                            • dvduval

                              today at 2:35 AM

                              Will there ever be a day where I could run this on a PC or something like it?

                              • leoh

                                today at 1:47 AM

                                Will Apple break this?

                                  • rvz

                                    today at 3:42 AM

                                    They will find a way to break it.

                                • TylerJaacks

                                  today at 12:11 AM

                                  This project is really cool its a shame you have to disable or partial disable SIP which can break some things.

                                    • fishfasell

                                      today at 2:46 AM

                                      Yeah real shame that I know I could never run this on a corporate machine and only ever as a hobbyist.

                                        • userbinator

                                          today at 3:52 AM

                                          That means you're working for the wrong companies ;-)

                                  • ironqcold

                                    yesterday at 11:46 PM

                                    Interesting project. If it actually works it opens up a ton of possibilities for testing and reverse engineering.

                                    • chews

                                      today at 12:40 AM

                                      What a release! Congrats to the builder, lots of great work done here and in IOS profiling in general has been done here recently. Corellium went research only and I lost the ability to actually profile my applications the way I'd like. I've got a fun thing over coffee in the morning!

                                        • krackers

                                          today at 1:21 AM

                                          Feels weird that after their attempts to shut down corellium they themselves shipped the necessary bits to allow this

                                          https://github.com/wh1te4ever/super-tart-vphone-writeup

                                          • sumedh

                                            today at 2:53 AM

                                            Will this project make it easier to performance test Apps on the virtual iPhone?

                                        • boredatoms

                                          yesterday at 11:43 PM

                                          Is this what apple does in xcode?

                                            • vlovich123

                                              yesterday at 11:57 PM

                                              If you’re talking about the simulator, no. That doesn’t virtualize - it literally just runs it locally on your machine. Less RAM overhead and CPU since it uses your normal instruction set and doesn’t run a separate kernel and userspace.

                                                • valleyer

                                                  today at 12:08 AM

                                                  At least historically, it actually did run its own entire userspace, including daemons (all the way to launchd, IIRC), etc. All compiled for Intel, back in the day. Shared the kernel though.

                                                  Many of the nominally shared system pieces between Mac and iPhone (like Foundation) actually had many subtle compile-time differences.

                                                  • theflyestpilot

                                                    today at 12:41 AM

                                                    so can this receive web push notifications?

                                            • orangea

                                              yesterday at 11:40 PM

                                              what is "PCC"?

                                                • busymom0

                                                  yesterday at 11:40 PM

                                                  Private cloud compute I think. I learnt about it today too from this reddit post which mentions how:

                                                  > At WWDC, Apple announced that starting in the 27.x versions of iOS, macOS, etc., devs would be able to call Private Cloud Compute directly from Swift with no additional API configuration. Presently, the only way to get free cloud inference is by joining the App Store Small Business Program.

                                                  https://www.reddit.com/r/appledevelopers/comments/1vztibh/re...