Bagel icon indicating copy to clipboard operation
Bagel copied to clipboard

iOS14 compatible

Open LiMaoAtCD opened this issue 4 years ago • 2 comments

LiMaoAtCD avatar Jun 28 '20 02:06 LiMaoAtCD

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,

colinhumber avatar Sep 08 '20 19:09 colinhumber

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>

Servus7 avatar Sep 17 '20 07:09 Servus7