In case somebody also runs into this, I had the same issue (although I created the NWListener differently), and it turned out that the error was caused by an empty listener.newConnectionHandler. Set it before calling start, and it might fix it.
Just in case I also had serviceRegistrationUpdateHandler set, although I don't know if it's required.
Topic:
Programming Languages
SubTopic:
Swift
Tags: