Upgrade iOS to 18.5, then install app in Xcode and grant permissions to send UDP but it won't work. Then restart device, open this installed app and send UDP again and this time it becomes OK. Repeat these steps and it all goes well. The UDP pod I use in app is CocoaAsyncSocket.
The same thing happens on iPhone 14 Plus and 16 Pro, both iOS 18.5. How to explain this phenomenon, thanks for your help in advance.
We made a critical fix to local network privacy in iOS 18.6. For the details, search for FB14321888
in TN3179 Understanding local network privacy.
Given the scope of that bug, it’s hard to say anything conclusive about how local network privacy will behave on iOS 18.x, x < 6. You should focus your testing on 18.6 (and earlier releases, if you support them, and the latest iOS 26 beta).
Share and Enjoy
—
Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"