I’ve moved to Macbook Pro M1, and my Xcode version is 12.5.1
When running my app, I’m getting below error:
ld: library not found for -lBVLinearGradient
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I’m also using react-native-linear-gradient
(version 2.5.6) library, for which this error is related to.
2
Answers
I could fix this issue with amend my Podfile by adding this:
When I did the following steps, I was able to build without any errors
1. Paste these lines at the bottom of the pod file
2. You have to exclude arm64 for simulator architecture both from your main project and the Pod project
Main Project
Pod Project
3. Delete DerivedData
4. Rebuild node_modules and pod install
If there is nothing I forgot, everything was working when I did all these. It took me a long time to put these pieces together but it turned out nice