集成极光推送SDK2.1.9报以下错误.
Undefined symbols for architecture arm64:
"_deflate", referenced from:
_JPUSHGzip in jpush-ios-2.1.9.a(JPUSHUtilities.o)
"_deflateInit2_", referenced from:
_JPUSHGzip in jpush-ios-2.1.9.a(JPUSHUtilities.o)
"_deflateEnd", referenced from:
_JPUSHGzip in jpush-ios-2.1.9.a(JPUSHUtilities.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
官方文档中给出导入系统依赖库
CFNetwork.framework
CoreFoundation.framework
CoreTelephony.framework
SystemConfiguration.framework
CoreGraphics.framework
Foundation.framework
UIKit.framework
Security.framework
Adsupport.framework (获取IDFA需要;如果不使用IDFA,请不要添加)
UserNotifications.framework(Xcode8及以上)
但是他们漏掉了一个系统库,还需要添加系统库
libz.tbd
完美解决问题,这是参照他们的官方Demo发现的,赞我!