XCode5 Link Testflight SDK库

Dec*_*yFx 13 linker static-libraries testflight xcode5

我想在我的项目中使用libTestFlight.a库,我已经在"链接二进制文件库"中导入它,也在构建阶段,我试图添加" 搜索路径 "和" 标题路径 ",我也尝试更改ARCH标准架构(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)
Run Code Online (Sandbox Code Playgroud)

小智 32

将libz.dylib添加为Link Binary With Libraries.

构建阶段>使用库链接二进制>按+按钮>搜索libz.dylib并选择它>按"添加"按钮.