Pulse icon indicating copy to clipboard operation
Pulse copied to clipboard

PolicyDenied(-65570)

Open drummingdemon opened this issue 8 months ago • 3 comments

Hi! Thanks for your hard work - for some reason, the Pulse Pro connection stopped working for me on iOS Simulators, even with a fresh, empty project.

I've added the Info.plist contents, included the SPM package as I've done before - and i'm getting this in the console, which should mean that local network discovery isn't granted:

nw_browser_fail_on_dns_error_locked [B2] nw_browser_dns_service_browse_callback failed: PolicyDenied(-65570)

Image

I don't know if the pop-up for network discovery should be seen here (it does pop up on a physical device) - but for some reason, network connection with Pulse Pro isn't working when the app is run in a Simulator.

I've tried iOS 18.4 and 18.3.1 - both with Xcode 16.3 and sadly, Local network isn't there in the per-app settings mentioned in the screenshot.

I've removed all the Simulator instances and the SDKs and have re-downloaded them. Did a clean in the project and also removed DerivedData by hand. I do remember Pulse Pro working flawlessly a little while ago but now can't for the life of me figure out what's going wrong.

Any ideas?

drummingdemon avatar Apr 11 '25 21:04 drummingdemon

Just jumping in to say I've been able to fix this for RocketSim by stepping away from NWBrowser and using NWConnection directly with a localhost server.

I tried solving it by still using NWBrowser, but it seems to never work, even if configuring the plist file correctly as the Pulse documentation suggests. Some Apple forums mention Bonjour was never intended to work on the Simulator, so hopefully it's not a case where they actually broke something that should've never worked 🤔

AvdLee avatar Apr 18 '25 13:04 AvdLee

It looks like Apple is treating is as a bug https://developer.apple.com/forums/thread/780655?answerId=835257022#835257022. Stay tuned.

kean avatar Apr 18 '25 13:04 kean

Any workarounds? Maybe triggering the permission alert and accepting it would do the job?

szotp avatar May 26 '25 07:05 szotp