granpaJones
granpaJones

Reputation: 53

Bonjour scan keeps failing on iOS 18

I am using this Xcode project that should display bonjour devices, it's a little bit old so I realise I have to add permissions in the plist to make it work.

https://github.com/mrmitew/Bonjour-iOS

I added the Permissions:

<key>NSBonjourServices</key>
<array>
    <string>_services._dns-sd._udp.</string>
    <string>_tcp.local.</string>
    <string>_http._tcp.</string>
</array>
<key>NSLocalNetworkUsageDescription</key>
<string>This app needs access to the local network to discover services.</string>
<key>com.apple.developer.networking.multicast</key>
<true/>

When I run the app on my iPhone (not simulator) I get:

Discovering.. ["NSNetServicesErrorDomain": 10, "NSNetServicesErrorCode": -72008] No services were found on the network

Which is wrong, as my network is riddled with Bonjour devices.

I really just want a list of all bonjour devices, any idea what I am doing wrong?

Upvotes: 0

Views: 107

Answers (0)

Related Questions