NSNetServiceBrowser did not search with error -72008 on iOS 14
问题 The same error is also triggered setting up Multipeer Connectivity (which uses Bonjour). The code I was using for initiating Bonjour browsing and Multipeer Connectivity was modified from the Apple sample code and worked fine under iOS 13. 回答1: You need to add the following keys to the Info.plist: NSLocalNetworkUsageDescription and NSBonjourServices . E.g. <key>NSLocalNetworkUsageDescription</key> <string>Reason for using Bonjour that the user can understand</string> <key>NSBonjourServices<