I am on MacOS 10.15.7 with Xcode 12.4 and I am facing the same problem.
Seems to be related to debugging - unfortunately it also applies to the Simulator in my case.
This is pretty unacceptable for a 'professional tool' I have to say. I need to get work done (which involves debugging in my case!)
Do I need to upgrade to Big Sur? (which probably keeps me busy for another day).
Downgrade to 12.2? (Really?!!)
What is the quickest way out of it - given I need latest SwiftUI libraries on iOS?
(and I guess this is rhetorical question as nobody from Apple seems to care?)
Post
Replies
Boosts
Views
Activity
This still seems to be a problem - also on iPad on 14.6 with TrackPad control (MagicKeyboard) and Catalyst on Mac OS 11.4. It works on the iPad Simulator though...
// Never use the cellular interface
let tcp_params = NWParameters.tcp
tcp_params.prohibitedInterfaceTypes = [.cellular]
if config.useBonjour {
Log.network.notice("Starting NetworkHandler with Bonjour for \(String(describing: config.name), privacy:.public)")
let endpoint = NWEndpoint.service(name: config.name, type: "_cap._tcp", domain: "local", interface: nil)
nwconnection = NWConnection(to: endpoint, using: tcp_params)
}
else {
let host:NWEndpoint.Host = config.host
let port:NWEndpoint.Port = 5055
Log.network.notice("Starting NetworkHandler for \(String(describing: host), privacy:.public) at port: \(String(describing: port), privacy:.public)")
nwconnection = NWConnection(host: host, port: port, using: tcp_params)
}