解决 react-native ios 端集成百度地图报 d: library not found for -lcrypto

安装整合环境: 10.15.1

xcode:11.3

 

安装 react-native-baidu-map

yarn react-native-baidu-map

 

使用 pod 命令安装百度地图相关 sdk

cd iospod install 

react-native 0.61.4 会自动对相关的库进行链接

 

报错及解决方法

之后 react-native run-ios 会报下面的错误:

d: libray not found for -lcrypto 

解决方法参考: github react-native-baidu-map 的有关 issue #308 (https://github.com/lovebing/react-native-baidu-map/issues/308

解决 react-native ios 端集成百度地图报 d: library not found for -lcrypto

Library Search Paths 的 Debug 和 Release 加上如下路径:

$(PROJECT_DIR)/Pods/BaiduMapKit/BaiduMapKit/thirdlibs