2

Getting me error and crash while app launch. I'm using Websocket.swift ('Starscream') and connection establish in app-delegate. Is there issue due to socket connection?

Error:-

[DYGLInitPlatform] connection to host has failed: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory"

Shiva_iOS
  • 47
  • 1
  • 6
  • Hi Shiva, Getting the same error, did you manage to resolve it? If so would you mind sharing it here? – Igor Hoogerwoord Apr 15 '20 at 06:31
  • Yes @IgorHoogerwoord in my code some socket connection related issue . So i have proper stablished the socket connection with server and now working fine.Can you please let me know in your case what you faced issue? thanks – Shiva_iOS Apr 16 '20 at 08:11
  • Hi Shiva, possibly related to a request fired on app startup as well. How do you set up a 'proper established socket connection'? I simply use urlsession+urlrequest like anyone else. – Igor Hoogerwoord May 05 '20 at 07:32
  • Also occurs occasionally in `Xcode 11.5` with the same error message. Don't know how to fix. – wzso Jun 16 '20 at 08:10
  • Same here: it occasionally occurs to my app (iOS 13.x, Xcode 11.5 (11E608c), latest SDKs. No idea the reason. – Stéphane de Luca Jun 16 '20 at 09:26
  • [DYGLInitPlatform] connection to host has failed: Error Domain=NSPOSIXErrorDomain Code=2 "No such file or directory" occured on Version 12.4 (12D4e) – liudasbar Mar 31 '21 at 00:25
  • Anyone have details on how to fix this? – Kurt Dowswell Nov 24 '21 at 16:29

1 Answers1

0

The reasons of this crash, for sure, might be very different, but try cleaning your Build directory with ++K.

It's like rebooting your Mac — would never hurt.

Nikandr Marhal
  • 1,230
  • 1
  • 12
  • 12