Skip to content

HttpServer does not support for multicast #547

Open
@hoangtam101

Description

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,

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions