【问题标题】:XCode5 Link Testflight SDK libraryXCode5 链接 Testflight SDK 库
【发布时间】:2014-02-04 20:36:06
【问题描述】:

我想在我的项目中使用 libTestFlight.a 库,我已经在“Link Binaries With Libraries”中导入它,也在构建阶段,我尝试添加“Search Path”和“Header Path",我也尝试将 ARCH 更改为 Standard architectures (armv7, armv7s),但仍然没有运气,它总是给出这个错误:

Undefined symbols for architecture armv7:
  "_deflate", referenced from:
      __tf_remote_log_compress_data in libTestFlight.a(tf_remote_log_io.o)
  "_deflateInit_", referenced from:
      __tf_remote_log_compress_data in libTestFlight.a(tf_remote_log_io.o)
  "_deflateEnd", referenced from:
      __tf_remote_log_compress_data in libTestFlight.a(tf_remote_log_io.o)
ld: symbol(s) not found for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)

【问题讨论】:

    标签: linker xcode5 static-libraries testflight


    【解决方案1】:

    将 libz.dylib 添加为与库的链接二进制文件。

    Build Phases > Link Binary With Libraries > 按 + 按钮 > 搜索 libz.dylib 并选择它 > 按 Add 按钮。

    【讨论】:

      猜你喜欢
      • 2023-03-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-12
      • 2013-09-21
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多