lottie-react-native: "Something went wrong while linking"
When I’m trying to link i’m getting some errors.
react-native link lottie-ios
Linking lottie-ios ios dependency
It seems something went wrong while linking. Error: buildSettings.LIBRARY_SEARCH_PATHS.push is not a function
react-native link lottie-react-native
DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
Linking lottie-react-native android dependency
Android module lottie-react-native has been successfully linked
Linking lottie-react-native ios dependency
ERR! It seems something went wrong while linking. Error: buildSettings.LIBRARY_SEARCH_PATHS.push is not a function
react-native-cli: 2.0.1 react-native: 0.37.0 node -v v7.5.0
I’ll be trying CocoaPods now, but i’m interested on why i’m getting that error. === Edit I’ve tried adding lottie on Podfile (also added react on it, cause i was getting a deprecated message). Run pod install successfully but i was not able to reproduce an animation. I’ve used Lottie Logo json as an example. I’ve tried the link commands above after running pod install, and returned for lottie-ios "iOS module lottie-ios is already linked "
But for lottie-react-native still got: Linking lottie-react-native ios dependency It seems something went wrong while linking. Error: buildSettings.LIBRARY_SEARCH_PATHS.push is not a function
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Comments: 16
React native link seems to assume that
LIBRARY_SEARCH_PATHSis a list.So inside
project.pbxprojchangeLIBRARY_SEARCH_PATHS = "$(BUILD...";to
LIBRARY_SEARCH_PATHS = ("$(BUILD...");