我在Xcode 4.0上开发了Iphone应用程序。我必须格式化HTML文件并将其放入Txt View 。我正在尝试使用TBXML,但是在调试时出现6个错误:Undefined symbols for architecture i386: "_deflateInit2_", referenced from: -[NSData(NSDataAdditions) gzipDeflate] in NSDataAdditions.o "_deflate", referenced from: -[NSData(NSDataAdditions) gzipDeflate] in NSDataAdditions.o "_deflateEnd", referenced from: -[NSData(NSDataAdditions) gzipDeflate] in NSDataAdditions.o "_inflateInit2_", referenced from: -[NSData(NSDataAdditions) gzipInflate] in NSDataAdditions.o "_inflate", referenced from: -[NSData(NSDataAdditions) gzipInflate] in NSDataAdditions.o "_inflateEnd", referenced from: -[NSData(NSDataAdditions) gzipInflate] in NSDataAdditions.old: symbol(s) not found for architecture i386collect2: ld returned 1 exit status
我想gZip库有一些东西...如果有人知道解决该问题的方法或其他好的/完整的XMLParse库,请多谢我:D
PS:如果您有一些阅读困难,对不起,我的英语...
最佳答案
此类错误意味着您尚未包含库或框架。
快速浏览deflateInit2的Google告诉我它是libz框架。
如果将libz.dylib添加到框架列表中,则应进行编译。
希望能有所帮助。
关于iphone - gzipInflate/gzipDeflate错误,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/5593219/