@eskimo
I'm got the above working but I also need to advertise a Bonjour service with a TXT record. When I add the following code the state changes to failed and the whole thing stops working :( Any hints?
listener.service = .init(
name: "SETup",
type: "_http._tcp.",
domain: "local",
txtRecord: NWTXTRecord([
"uuid": "..."
])
)
Prints the following results:
Service started.
dnssd_clientstub ConnectToServer: connect() failed path:/var/run/mDNSResponder Socket:11 Err:-1 Errno:2 No such file or directory
waiting(POSIXErrorCode: Network is down)
ready
failed(-65563: ServiceNotRunning)
FYI, I have enabled incoming/outgoing connections and added bonjour plist key/value pair.
Topic:
App & System Services
SubTopic:
Networking
Tags: