Conversation
|
Thanks for the fix and explanation! |
|
@oscartbeaumont I was using previous version of netdev, everything seem to work fine without these changes 🤔 . Adding "SystemConfiguration" to the framework list was necessary though * |
|
Can you include some more information about what platform your testing on? |
|
@oscartbeaumont I'm using iOS 18.6 and some older versions previously, device - iPhone 11, netdev v0.35.2 In order to make it work I had to add SystemConfiguration to the framework dependencies in xcode (or xcodegen in my case) |
|
Thanks again for this PR and the discussion! 🙏 Recap:
I’ve now restored that path in the
However, SCNetworkInterfaceGetLocalizedDisplayName and SCNetworkInterfaceGetInterfaceType are still macOS-only. |
I'm trying to use Iroh's mDNS discovery system on iOS which makes use of
netdevinternally and i'm getting linking errors like the following on iOS.Error
This is due to
netdevusing functionality fromSystemConfigurationwhich is not supported on iOS. For example SCNetworkInterfaceCopyAll which is used vianetwork_configuration::get_interfaces.This PR adds a special implementation for all Apple operating systems that aren't macOS. I can't verify on anything other than iOS but we can be pretty sure the current code doesn't work as Apple report
SCNetworkInterfaceCopyAllto only be supported on macOS.