问题
旧 RN 项目在命令行运行 yarn ios
报错
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening tongban.xcworkspace.
遂使用 Xcode 运行,报错显示在 target 项目Tests
下找不到库-lcrypto
原因与解决
从网上查到 -lcrypto
这个库是因为 RN 集成百度地图导致的,
解决方法参考 : github react-native-baidu-map 的有关 issue #308 (https://github.com/lovebing/react-native-baidu-map/issues/308)
操作如下:在 target tongbanTests
之下,build settings
中查找 Library Search Paths
。内部添加查询路径:
$(PROJECT_DIR)/Pods/BaiduMapKit/BaiduMapKit/thirdlibs
网友评论