Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS14 compatible #63

Open
LiMaoAtCD opened this issue Jun 28, 2020 · 2 comments
Open

iOS14 compatible #63

LiMaoAtCD opened this issue Jun 28, 2020 · 2 comments

Comments

@LiMaoAtCD
Copy link

No description provided.

@colinhumber
Copy link
Contributor

colinhumber commented Sep 8, 2020

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,

@Servus7
Copy link

Servus7 commented Sep 17, 2020

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>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants