0

アプリで 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)

ファイルをプロジェクトにインポートしただけなので、なぜそれらを取得しているのかよくわかりません。

4

0 に答える 0