我正在尝试在我的应用程序上使用 socket.io,并且我正在使用 pkyeck socket.io 实现。但是,当我从 pkyeck socket.io 导入文件和从 socketrocket 导入文件时,我收到 21 个 Apple mach-O 链接错误,我不知道它是什么意思或指的是什么。
Undefined symbols for architecture i386:
"_CFHTTPMessageAppendBytes", referenced from:
___30-[SRWebSocket _readHTTPHeader]_block_invoke in SRWebSocket.o
"_CFHTTPMessageCopyAllHeaderFields", referenced from:
___30-[SRWebSocket _readHTTPHeader]_block_invoke in SRWebSocket.o
"_CFHTTPMessageCopyHeaderFieldValue", referenced from:
-[SRWebSocket _checkHandshake:] in SRWebSocket.o
-[SRWebSocket _HTTPHeadersDidFinish] in SRWebSocket.o
"_CFHTTPMessageCopySerializedMessage", referenced from:
-[SRWebSocket didConnect] in SRWebSocket.o
"_CFHTTPMessageCreateEmpty", referenced from:
-[SRWebSocket _readHTTPHeader] in SRWebSocket.o
"_CFHTTPMessageCreateRequest", referenced from:
-[SRWebSocket didConnect] in SRWebSocket.o
"_CFHTTPMessageGetResponseStatusCode", referenced from:
-[SRWebSocket _HTTPHeadersDidFinish] in SRWebSocket.o
"_CFHTTPMessageIsHeaderComplete", referenced from:
___30-[SRWebSocket _readHTTPHeader]_block_invoke in SRWebSocket.o
"_CFHTTPMessageSetHeaderFieldValue", referenced from:
-[SRWebSocket didConnect] in SRWebSocket.o
___25-[SRWebSocket didConnect]_block_invoke in SRWebSocket.o
"_SecCertificateCopyData", referenced from:
-[SRWebSocket stream:handleEvent:] in SRWebSocket.o
"_SecRandomCopyBytes", referenced from:
-[SRWebSocket didConnect] in SRWebSocket.o
-[SRWebSocket _sendFrameWithOpcode:data:] in SRWebSocket.o
"_SecTrustGetCertificateAtIndex", referenced from:
-[SRWebSocket stream:handleEvent:] in SRWebSocket.o
"_SecTrustGetCertificateCount", referenced from:
-[SRWebSocket stream:handleEvent:] in SRWebSocket.o
"_kCFHTTPVersion1_1", referenced from:
-[SRWebSocket didConnect] in SRWebSocket.o
"_kCFStreamPropertySSLPeerTrust", referenced from:
-[SRWebSocket stream:handleEvent:] in SRWebSocket.o
"_kCFStreamPropertySSLSettings", referenced from:
-[SRWebSocket _initializeStreams] in SRWebSocket.o
"_kCFStreamSSLValidatesCertificateChain", referenced from:
-[SRWebSocket _initializeStreams] in SRWebSocket.o
"_kSecRandomDefault", referenced from:
-[SRWebSocket didConnect] in SRWebSocket.o
-[SRWebSocket _sendFrameWithOpcode:data:] in SRWebSocket.o
"_utf8_countTrailBytes", referenced from:
_validate_dispatch_data_partial_string in SRWebSocket.o
"_utf8_nextCharSafeBody", referenced from:
_validate_dispatch_data_partial_string in SRWebSocket.o
ld: symbol(s) not found for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我真的不知道为什么要得到它们,因为我所做的只是将文件导入项目。