Apple mach-O链接错误无处不在

时间:2013-09-09 01:54:52

标签: ios sockets

我正在尝试在我的应用程序上使用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)

我真的不知道为什么我得到它们,因为我所做的就是将文件导入到项目中。

0 个答案:

没有答案