我已经按照github页面上的说明进行了所有安装过程,以获取react-native-linear-gradient。
但是当我尝试为ios(通过react-native run-ios
命令和Xcode进行编译)时,出现以下错误:
ld: library not found for -lBVLinearGradient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
我已经通过xcworkspace打开了该项目,其中大多数建议在使用Cocoapods时是这样的,但是无论如何错误仍然存在。
对此有任何线索吗?
答案 0 :(得分:0)
在升级0.62.1之后,我遇到了同样的问题,下面的方法对我有用:
rm -rf node_modules && sudo yarn install
cd ios && pod deintegrate
pod install
这对我有用,希望它能对某人有所帮助