Bagel
Bagel copied to clipboard
iOS14 compatible
Note that on iOS 14 NSBonjourServices
and NSLocalNetworkUsageDescription
details need to be included in the Info.plist. A -72008 error code will be thrown otherwise and the app will crash due to an infinite loop.
/* Missing required configuration for local network access.
*
* NSBonjourServices and NSLocalNetworkUsageDescription are required in Info.plist
*/
NSNetServicesMissingRequiredConfigurationError API_AVAILABLE(macos(11.0), ios(14.0), tvos(14.0)) API_UNAVAILABLE(watchos) = -72008L,
In case anyone struggling with it:
NSBonjourServices
<key>NSBonjourServices</key>
<array>
<string>_Bagel._tcp</string>
</array>
NSLocalNetworkUsageDescription
<key>NSLocalNetworkUsageDescription</key>
<string>Network access required</string>