Can’t type in uitextfield because of – [general] connection to daemon was invalidated

When I tap in uitextfield to edit it, the message “connection to daemon was invalidated” shows up and the keyboard on my iphone doesn’t show up. I am unable to edit any uitextfield at the moment because of such error. How can I fix this?

Source: Swift