Upgrading to the latest React Native version often leads to some build errors.
We provide the list of the issues that we have faced with and possible fixes for them.
-
'algorithm' file not found
- Community solution: facebook/yoga#711
- Fix in demo: https://github.com/voximplant/react-native-demo/blob/7da7159ee02f367570c019cfaaae45f48d3a84b8/ios/Podfile
-
RCTSurfaceHostingView.h:12: Expected ‘)’
- Community solution: facebook/yoga#711
- Fix in demo: https://github.com/voximplant/react-native-demo/blob/7da7159ee02f367570c019cfaaae45f48d3a84b8/ios/Podfile
-
'fishhook/fishhook.h' not found
- Community solution: facebook/react-native#16039
- Fix in demo: https://github.com/voximplant/react-native-demo/blob/master/package.json#L7
-
'RCTAnimation/RCTValueAnimatedNode.h' file not found
- Community solution: facebook/react-native#13198
- Fix in demo: https://github.com/voximplant/react-native-demo/blob/master/package.json#L7
-
xcrun: error: SDK "iphoneos" cannot be located on glog dependency install
- Community solution: theos/theos#255
- To fix this issue enviromenent setup should be changed:
- run
xcode-select -print-path
- check the path printed
- change it to /Applications/Xcode.app by running
sudo xcode-select -switch /Applications/Xcode.app
- run
- more than one library with package name 'com.google.android.gms.license'
- Community fix: evollu/react-native-fcm#857
- This is a demo dependency issue related to Google FCM 12.0 release. The react-native-fcm dependency will be updated as soon as it releases a new version. To resolve the issue until that time, please apply the following changes locally: https://github.com/evollu/react-native-fcm/pull/859/commits/7e103b4c2cd7d73d82d0afd6feffee67fb654e3d