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

HttpServer does not support for multicast #547

Open
hoangtam101 opened this issue Dec 13, 2023 · 0 comments
Open

HttpServer does not support for multicast #547

hoangtam101 opened this issue Dec 13, 2023 · 0 comments

Comments

@hoangtam101
Copy link

Hi everyone,

I'm encountering an issue with Swifter after updating my iOS app.
Prior to this update, Swifter worked well, but now, after adding the entitlement com.apple.developer.networking.multicast as required for iOS 16, the functionality doesn't seem to work.

Device Versions
Swift: 5
Swifter: 1.5.0
iOS: 16.7.2

Code Snippet

Here's the relevant code snippet related to the Swifter setup:

var currentData: Data?
var localServer: HttpServer!
server.GET["//:path"] = { request in
      if let currentData = currentData {
                return .ok(.data(currentData))
      } else {
                return .notFound
      }
      return .notFound
}

Steps to Reproduce
Enable the com.apple.developer.networking.multicast entitlement for the app.
Run the app on iOS 16.7.2 - iOS 17.0.
Connected iOS app to another device (like example tv...)
Observe the issue with Swifter functionality.

Environment
Devices: iPhone 12
Network: Wi-Fi network with multicast support
Additional Information
I've added the com.apple.developer.networking.multicast entitlement as required, and there are no error messages in the console. The issue seems to be related to the recent iOS update.

Appreciation
Thank you in advance for your help and support!

Best regards,
@hoangtam101 hoangtam101 changed the title HttpServer does support for multicast HttpServer does not support for multicast Dec 13, 2023
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

1 participant