错误:Apple Mach-O链接器(Id)警告 [英] Error:Apple Mach-O Linker (Id) Warning

查看:947
本文介绍了错误:Apple Mach-O链接器(Id)警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,我一直在努力导入和导出数据库。

In my app I have been working to import and export the database.

我已经导入了一些文件,这是功能需要,但当我试图运行应用程序在模拟器中出现下面列出的错误。我不明白这些错误类型。所以plz帮我解决这个问题。

I have imported some files which is required for this functionality but when i try to run the app in simulator the errors listed below occurs. I can't understand which type of errors are these. so plz help me solve this problem.

Undefined symbols for architecture i386:
  "_inflateInit2_", referenced from:
      -[NSData(NSDataExtension) gzipInflate] in NSData+CocoaDevUsersAdditions.o
  "_inflate", referenced from:
      -[NSData(NSDataExtension) gzipInflate] in NSData+CocoaDevUsersAdditions.o
  "_inflateEnd", referenced from:
      -[NSData(NSDataExtension) gzipInflate] in NSData+CocoaDevUsersAdditions.o
  "_deflateInit2_", referenced from:
      -[NSData(NSDataExtension) gzipDeflate] in NSData+CocoaDevUsersAdditions.o
  "_deflate", referenced from:
      -[NSData(NSDataExtension) gzipDeflate] in NSData+CocoaDevUsersAdditions.o
  "_deflateEnd", referenced from:
      -[NSData(NSDataExtension) gzipDeflate] in NSData+CocoaDevUsersAdditions.o
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status


推荐答案

您没有包含这些函数的libz.dylib。选择项目节点,选择目标,进入Build Phases选项卡,展开Link Binaries With Libraries,添加libz.dylib,然后重试。

You didn't include the libz.dylib where those functions are. Select the project node, select your target, go to the Build Phases tab, expand "Link Binaries With Libraries", add libz.dylib, and try again.

这篇关于错误:Apple Mach-O链接器(Id)警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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