我想在swift中使用GCDAsyncSocket,当构建项目时显示此错误
Use of unresolved identifier 'GCDAsyncSocket'
我的代码是
self.socket = GCDAsyncSocket(delegate: self, delegateQueue:dispatch_get_main_queue())
我尝试将此添加到我的Bridging-Header.h
#import "GCDAsyncSocket.h" // for TCP
#import "GCDAsyncUdpSocket.h" // for UDP
上述问题已解决但新问题
'GCDAsyncSocket.h' file not found
有人说需要导入GCDAsyncSocket.framework 如何导入?