iOS启动报错----- [DYGLInitPlatform] connection to host has failed:

iOS启动时偶尔会报错:

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

aborting: platform initialization failed

解决办法

1.您的构建文件夹中可能存在一些损坏的文件。
尝试运行Clean(⌘+⇧+ K)和Clean build folder...(⌘+⇧+⌥+ K)并重建您的应用。
2.也有可能错误与启动屏幕有关,很可能是它已损坏。删除常规标签下的启动屏幕,解决了问题。

参考文章

你可能感兴趣的:(iOS启动报错----- [DYGLInitPlatform] connection to host has failed:)