Reputation: 1055
When I launch app sometimes I get this error and sometimes no:
2017-11-10 14:00:37.119701+0000 XXX[768:176399] [DYGLInitPlatform] connection to host has failed: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"
2017-11-10 14:00:37.123363+0000 XXX[768:176399] aborting: platform initialization failed
(lldb)
What can cause this problem ?
Upvotes: 42
Views: 10450
Reputation: 8621
There could be some corrupt files in your build folder.
Try running Clean
(⌘+⇧+K) and Clean build folder...
( ⌘+⇧+⌥+K ) and rebuild your application.
Upvotes: 32
Reputation: 944
In my case, the error was related to Launch Screen, most likely it was corrupt.
Deleting the launch screen under General Tab, fixed the issue.
Upvotes: 5