Xcode 9.0中遇到一个错误是这样的:
Declaration of 'select' must be imported from module 'Darwin.POSIX.sys.time' before it is required
69F83F0BE7EDADB15AD4AD66B82FB0D4.png
解决方法:
在对应的类中添加头文件:"#include <sys/time.h>"
重新编译,通过!
就是这么简单。
Declaration of 'select' must be imported from module 'Darwin.POSIX.sys.time' before it is required
在对应的类中添加头文件:"#include <sys/time.h>"
重新编译,通过!
就是这么简单。