1.问题,第三方库报错信息如下:
Declaration of 'sa_family_t' must be imported from module 'Darwin.POSIX.sys.types._sa_family_t' before it is required
2.解答,在报错文件中导入以下头文件
#import <sys/_types/_sa_family_t.h>
如有以上问题,即可解决
Declaration of 'sa_family_t' must be imported from module 'Darwin.POSIX.sys.types._sa_family_t' before it is required
#import <sys/_types/_sa_family_t.h>
如有以上问题,即可解决