Sorry it’s taken a while to get back to you. I wanted to makes sure I tested this properly, and that took a lot longer than I’d hoped [1].
My understanding is that local network privacy on macOS should apply to iOS Apps on Mac. To try this out I did the following:
-
On macOS 14.7, I create a VM running macOS 15.0.
-
I added the VM’s UDID to my account, so I’m able to run my iOS apps on it.
-
Still on macOS 14.7, I used Xcode 16.0 to create a small iOS app that triggers the Local Network alert.
-
I did a Product > Archive.
-
From the Xcode organiser, I exported an Ad Hoc signed build using Distribute App > Release Testing.
-
I copied the .ipa
to the macOS 15.0 VM.
-
In the VM, I double clicked the .ipa
in the Finder, which installed the app in the Applications folder.
-
I then launched the app from the Applications folder.
-
And clicked the button to trigger the Local Network alert.
-
The alert showed up as expected.
Now, that’s not to say that there isn’t a bug here. For example:
-
It’s possible that this might only reproduce when you install from the App Store.
-
Or that there’s some existing state on the Mac that ‘broke’ this. That’s why I use a VM to test this stuff, so I’m always starting from a ‘fresh’ Mac.
But it’s also possible that this is a bug in your code. For example, you might be suffering from a variant of the issue discussed in LNP FAQ-16.
However, I think the above confrims that this should work in general.
I plan to test it with a development build on my Mac in the next few days.
Cool. I think that’s the best next step.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"
[1] There were so many missteps )-: