我想在我的项目中使用libTestFlight.a库,我已经将其导入“Link Binaries With Libraries”,也在构建阶段,我尝试添加“搜索路径”和“标题路径”,我也尝试更改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)
解决方法
添加libz.dylib作为链接二进制与库.
建造阶段>链接二进制与库>>按下按钮>搜索libz.dylib并选择它>按“添加”按钮.