年年有"余"

 找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 3017|回复: 0

[项目经验] "_compress2", referenced from: 友盟统计 xcode7 问题

[复制链接]
  • TA的每日心情

    2024-10-15 10:05
  • 签到天数: 372 天

    [LV.9]以坛为家II

    发表于 2015-9-21 21:31:13 | 显示全部楼层 |阅读模式
    本帖最后由 Sian 于 2015-9-21 21:33 编辑

    "_compress2", referenced from:
          +[UMANUtil deflatedDataPrefixedWith:level:source:] in libMobClickLibrary.a(UMANUtil.o)
    ld: symbol(s) not found for architecture x86_64
    clang: error: linker command failed with exit code 1 (use -v to see invocation)

    解决方法是:在Other Linker Flags里加入-lz然后再编译通过

    类似的其他
    "_compress2", referenced from:
    "_inflateReset", referenced from:
    "_inflateInit_", referenced from:
    "_inflateEnd", referenced from:
    "_inflateInit2_", referenced from:
    均可以通过-lz来解决。

    -lz 会让你的程序在编译的时候against the built-in zlib,从而解决问题
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    手机版|小黑屋|Archiver|iOS开发笔记 ( 湘ICP备14010846号 )

    GMT+8, 2024-11-25 04:39 , Processed in 0.050595 second(s), 23 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2021, Tencent Cloud.

    快速回复 返回顶部 返回列表