UDPBroadcastConnection
UDPBroadcastConnection copied to clipboard
ipAddress is empty on handler in Release mode (On M series chip Macs).
` broadcastConnection = try UDPBroadcastConnection( port: 35602, handler: { (response: (ipAddress: String, port: Int, response: [UInt8])) -> Void in print("Received from (response.ipAddress):(response.port):\n\n(response.response)") // it's empty }, errorHandler: { (error) in print(error) })
`
Hi, I have been using this library in one of our apps, It's been working fine, recently I updated the app, everything worked good in Debug Mode but after releasing the app to the App Store, our app users started complaining that it's not working. Upon investigating I found out that ipAddress parameter in the handler is empty when app is running on Release Mode. Could anyone please look into this? @gunterhager , @kenji21
Edit : Just for clarity, everything else is working fine, it broadcasts the message and receive responses from the devices available but just ipAddress field is returning empty in Release mode
Edit 2 : I just found out, this issue happens when the app is built on M series chip of Macs, everything works fine on Intel chip macs
Thank you