-
Notifications
You must be signed in to change notification settings - Fork 28
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
ipAddress is empty on handler in Release mode (On M series chip Macs). #31
Comments
We faced some issues. The app was built on an M1 chip. |
I'm really sorry that I can't help you there. I have never used the framework on a Mac and currently have no resources to investigate here. Furthermore I think that modern apps should use |
The problem is happening also on iOS, building with Xcode 15.4 in Release mode. To fix it you can replace 'getEndpointFromSocketAddress' method with my implementation:
|
`
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
The text was updated successfully, but these errors were encountered: