编译器错误:架构x86_64的未定义符号

时间:2015-02-16 14:47:16

标签: ios iphone

Undefined symbols for architecture x86_64:
  "_CFMakeCollectable", referenced from:
      -[ASIFormDataRequest encodeURL:] in ASIFormDataRequest.o
      -[ASIHTTPRequest startRequest] in ASIHTTPRequest.o
      -[ASIHTTPRequest checkRequestStatus] in ASIHTTPRequest.o
      -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest.o
      -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.o
      -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest.o
      -[ASIHTTPRequest handleStreamComplete] in ASIHTTPRequest.o
      ...
  "_CFReadStreamCopyError", referenced from:
      -[ASIHTTPRequest handleStreamError] in ASIHTTPRequest.o
  "_CFReadStreamCopyProperty", referenced from:
      -[ASIHTTPRequest checkRequestStatus] in ASIHTTPRequest.o
      -[ASIHTTPRequest readResponseHeaders] in ASIHTTPRequest.o
      -[ASIHTTPRequest attemptToApplyProxyCredentialsAndResume] in ASIHTTPRequest.o
      -[ASIHTTPRequest attemptToApplyCredentialsAndResume] in ASIHTTPRequest.o
      -[ASIHTTPRequest handleStreamComplete] in ASIHTTPRequest.o
  "_CFReadStreamHasBytesAvailable", referenced from:
      -[ASIHTTPRequest handleBytesAvailable] in ASIHTTPRequest.o
  "_CFReadStreamOpen", referenced from:
      -[ASIHTTPRequest startRequest] in ASIHTTPRequest.o
  "_CFReadStreamSetClient", referenced from:
      -[ASIHTTPRequest startRequest] in ASIHTTPRequest.o
      -[ASIHTTPRequest scheduleReadStream] in ASIHTTPRequest.o
      -[ASIHTTPRequest unscheduleReadStream] in ASIHTTPRequest.o
  "_CFReadStreamSetProperty", referenced from:
      -[ASIHTTPRequest startRequest] in ASIHTTPRequest.o
      -[PFHTTPCommand scheduleInCurrentThread] in Parse(PFHTTPCommand.o)

尝试构建时出现此错误。有人可以指出出了什么问题吗?

1 个答案:

答案 0 :(得分:0)

好像你有你的头文件,但缺少.m文件。此外,您好像还没有发布整个错误列表。

通常,当您不将所有.m文件都包含在构建阶段时,会出现此类问题。