场景描述:
今天使用cocoapods集成OpenSSL的时候,发生了如下错误:
pod ‘OpenSSL’
pod install –verbose –no-repo-update
然后终端就报:
The 'Pods-FunctionalTest' target has libraries with conflicting names: libcrypto.a and libssl.a.
原因分析:
libcrypto.a and libssl.a.库冲突。原因是百度地图的库里也引用了这两个库。
这类似的库一般是库冲突。
解决办法:
删除项目pods库:百度地图中的对应的libcrypto.a and libssl.a.库。重新:
pod install –verbose –no-repo-update
即可。