The first time my application opened the app on macos15, after I enabled the LNP, my app could access the local network (a socket service was opened locally), but when I restarted the computer and opened the APP again, I could not access the local network at this time, why? Solution :1. Disable and enable the LNP or 2. Reinstall the app
If you restart Mac after allow LNP, the LNP of APP will not working
Computer console print:nw_path_libinfo_path_check [F3FF4A69-A8FB-42CE-924A-C17D137BC489 IPv4#07b4aa60:3460 tcp, legacy-socket, attribution: developer] libinfo check path: unsatisfied (Local network prohibited), interface: en111
It’s hard to say what’s triggering this, but I do have some questions:
-
What version of macOS are you testing on? LNP has some issues on macOS 15.0, so I suggest you test with 15.1 or later.
-
Is “my application” a GUI application? Or something less common, like a daemon or agent?
-
If it’s a GUI app, does the problem reproduce if you run the app from the Finder?
-
How are you building your code? With Xcode? Or directly from the command-line? Or with some third-party tools?
-
Is your code signed with a stable code signing? Anything other than ad hoc signing (Sign to Run Locally in Xcode parlance) will be fine.
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"