I have a react native project named 'MyReactNative'. I have updated react native version(~0.63.3) and after that I am getting an error below while running iOS code:
'EXUpdates/EXUpdatesAppController.h' file not found
This is how my package.json looks like:
{
"main": "index.js",
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"web": "expo start --web",
"start": "react-native start",
"test": "jest",
"build:ios": "node node_modules/react-native/local-cli/cli.js bundle --entry-file='index.js' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'"
},
"dependencies": {
"@react-native-community/cli-platform-android": "^4.13.0",
"@react-native-community/masked-view": "^0.1.10",
"@react-navigation/native": "^5.8.10",
"@react-navigation/stack": "^5.12.8",
"axios": "^0.19.0",
"babel-preset-react-native": "5.0.2",
"local_package": "file:../local_package-1.6.0.tgz",
"expo": "~39.0.2",
"expo-splash-screen": "~0.6.2",
"expo-status-bar": "~1.0.2",
"expo-updates": "^0.3.5",
"nodemon": "^1.18.10",
"npm-install-peers": "^1.2.1",
"prop-types": "^15.6.0",
"react": "17.0.1",
"react-devtools": "^3.6.1",
"react-dom": "16.13.1",
"react-native": "~0.63.3",
"react-native-axios": "^0.17.1",
"react-native-easy-toast": "^1.2.0",
"react-native-enhanced-popup-menu": "^0.6.1",
"react-native-gesture-handler": "^1.7.0",
"react-native-reanimated": "^1.13.2",
"react-native-safe-area-context": "^3.1.9",
"react-native-screens": "^2.10.1",
"react-native-unimodules": "~0.11.0",
"react-native-web": "~0.13.12",
"underscore": "^1.9.1"
},
"devDependencies": {
"@babel/core": "~7.9.0",
"babel-jest": "~25.2.6",
"jest": "~25.2.6",
"react-test-renderer": "~16.13.1"
},
"jest": {
"preset": "react-native"
},
"private": true
}
And podfile looks like:
# Uncomment the next line to define a global platform for your project
# platform :ios, '10.0'
require_relative '../node_modules/react-native-unimodules/cocoapods.rb'
require_relative '../node_modules/react-native/scripts/react_native_pods'
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
target 'MyReactNative' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!
config = use_native_modules!
use_react_native!(:path => config["../node_modules/react-native"])
end
I tried solution given on internet as below:
react native ios build fails with error - 'EXUpdates/EXUpdatesAppController.h' file not found
https://docs.expo.io/bare/installing-updates/
Also tried reinstall node module and pods. Unfortunately, nothing work for me. Please help!