架构 armv7 的未定义符号 [英] Undefined symbols for architecture armv7

查看:36
本文介绍了架构 armv7 的未定义符号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这个问题一直让我发疯,我不知道如何解决它...

This problem has been driving me crazy, and I can't work out how to fix it...

    Undefined symbols for architecture armv7:
  "_deflateEnd", referenced from:
      -[ASIDataCompressor closeStream] in ASIDataCompressor.o
  "_OBJC_CLASS_$_ASIDataDecompressor", referenced from:
      objc-class-ref in ASIHTTPRequest.o
  "_deflate", referenced from:
      -[ASIDataCompressor compressBytes:length:error:shouldFinish:] in ASIDataCompressor.o
  "_deflateInit2_", referenced from:
      -[ASIDataCompressor setupStream] in ASIDataCompressor.o
ld: symbol(s) not found for architecture armv7
collect2: ld returned 1 exit status
Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1

我认为这与:

ld: symbol(s) not found for architecture armv7

但我添加了:libz.1.2.3.dylib 并且它没有帮助,有人有任何想法吗?

But I have added: libz.1.2.3.dylib and it's not helping, anyone got any ideas?

推荐答案

我昨晚遇到了类似的问题,这个问题与我将一个类从 Finder 拖到我在 Xcode 中的项目这一事实有关.

I had a similar issue last night and the problem, was related to the fact that I had dragged a class from the Finder to my project in Xcode.

解决方案是转到 Build Phases 选项卡,然后转到 Compile Sources 并确保将类拖到列表中.

The solution was to go the the Build Phases tab and then the Compile Sources and make sure you drag the class to the list.

这篇关于架构 armv7 的未定义符号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆