Could not connect TCP Sever at simulator
hieunc278 opened this issue · comments
Expected behavior
Connect to TCP server at simulator with TCP Client successful
Actual behavior
Failed to connect TCP server at simulator with TCP Client.
The error message show as "2020-08-22 05:55:15.948928+0700 iDine[8523:266860] XPC connection interrupted
2020-08-22 05:57:04.736866+0700 iDine[8523:266862] [ServicesDaemonManager] interruptionHandler is called. -[FontServicesDaemonManager connection]_block_invoke"
Client code
Button(action: {
let client = TCPClient(host: "localhost", port: 9090)
do {
try client.start()
} catch let error {
print("Error: \(error.localizedDescription)")
client.stop()
}
}) {
HStack {
Text("Login")
.font(.title)
}
.padding()
.foregroundColor(.white)
.background(Color(red: 0/255, green: 89/255, blue: 121/255))
.cornerRadius(20)
}.padding(.top, 20)
That error message doesn’t appear to have anything to do with this operation: I think you’ll need to file a report with Feedback Assistant.
Thanks Mr @Lukasa for your feedback.
I'm actually trying very simple example but not successful yet with that error. Could you support me what could I do with Feedback Assistant ?
Using https://feedbackassistant.apple.com, provide the relevant diagnostics and a copy of your project.