Quantcast
Channel: Active questions tagged react-native+ios - Stack Overflow
Viewing all articles
Browse latest Browse all 16552

'React/UIView+React.h' file not found. Xcode 11 build failed

$
0
0

I wanted to do testing in ios 13 for that I needed xcode v11 so after upgrading to xcode 11.5 and then after running my project in simulator(ios 13). I was facing the following error.

enter image description hereThis exception was coming after a successful build.

Investigating about it online, there was a suggestion to upgrade the react and react-native versions. So I upgraded to the latest versions i.e "16.0.0-alpha.12" and "0.62.2" respectively and restarted Xcode. Afterwhich whole lot of errors started coming based on version dependencies, due to which I reverted the changes back to the initial stage.And then I clicked on Product->Clean build folder in Xcode and restarted xcodeNow after this when I am trying to build the project in simulator, the build is failing giving this error in build timeenter image description here

Aim : I want my project to run successfully in simulator. As it was running before upgrading to xcode 11.

P.S - Here is my project's package.json in react-native.

{"_from": "react-native@0.62.2","_id": "react-native@0.62.2","_inBundle": false,"_integrity": "sha512-gADZZ3jcm2WFTjh8CCBCbl5wRSbdxqZGd+8UpNwLQFgrkp/uHorwAhLNqcd4+fHmADgPBltNL0uR1Vhv47zcOw==","_location": "/react-native","_phantomChildren": {"@hapi/joi": "15.1.1","@jest/types": "25.5.0","@react-native-community/cli-debugger-ui": "4.9.0","@react-native-community/cli-server-api": "4.9.0","@react-native-community/cli-tools": "4.9.0","@react-native-community/cli-types": "4.10.0","@types/color-name": "1.1.1","@types/istanbul-lib-coverage": "2.0.3","@types/istanbul-reports": "1.1.2","@types/yargs-parser": "15.0.0","command-exists": "1.2.9","commander": "2.20.3","core-js": "2.6.11","cosmiconfig": "5.2.1","deepmerge": "3.3.0","envinfo": "7.5.1","fbjs-css-vars": "1.0.2","fs-extra": "8.1.0","fs.realpath": "1.0.0","graceful-fs": "4.1.11","inflight": "1.0.6","inherits": "2.0.3","inquirer": "3.2.1","is-stream": "1.1.0","isomorphic-fetch": "2.2.1","js-tokens": "3.0.2","lodash": "4.17.15","loose-envify": "1.3.1","metro": "0.58.0","metro-config": "0.58.0","metro-core": "0.58.0","metro-react-native-babel-transformer": "0.58.0","metro-resolver": "0.58.0","minimatch": "3.0.4","minimist": "1.2.5","mkdirp": "0.5.5","nice-try": "1.0.5","node-stream-zip": "1.11.2","npm-run-path": "2.0.2","object-assign": "4.1.1","once": "1.4.0","ora": "3.4.0","p-finally": "1.0.0","path-is-absolute": "1.0.1","path-key": "2.0.1","promise": "7.3.1","pump": "3.0.0","react-is": "16.13.1","serve-static": "1.13.1","setimmediate": "1.0.5","shebang-command": "1.2.0","signal-exit": "3.0.2","strip-eof": "1.0.0","sudo-prompt": "9.2.1","ua-parser-js": "0.7.21","wcwidth": "1.0.1","which": "1.3.0"  },"_requested": {"type": "version","registry": true,"raw": "react-native@0.62.2","name": "react-native","escapedName": "react-native","rawSpec": "0.62.2","saveSpec": null,"fetchSpec": "0.62.2"  },"_requiredBy": ["#USER","/"  ],"_resolved": "https://registry.npmjs.org/react-native/-/react-native-0.62.2.tgz","_shasum": "d831e11a3178705449142df19a70ac2ca16bad10","_spec": "react-native@0.62.2","_where": "/Users/$$$$/Desktop/zippy/zippy-ios","bin": {"react-native": "cli.js"  },"bugs": {"url": "https://github.com/facebook/react-native/issues"  },"bundleDependencies": false,"dependencies": {"@babel/runtime": "^7.0.0","@react-native-community/cli": "^4.5.1","@react-native-community/cli-platform-android": "^4.5.1","@react-native-community/cli-platform-ios": "^4.5.0","abort-controller": "^3.0.0","anser": "^1.4.9","base64-js": "^1.1.2","connect": "^3.6.5","create-react-class": "^15.6.3","escape-string-regexp": "^1.0.5","eslint-plugin-relay": "1.4.1","event-target-shim": "^5.0.1","fbjs": "^1.0.0","fbjs-scripts": "^1.1.0","hermes-engine": "~0.4.0","invariant": "^2.2.4","jsc-android": "^245459.0.0","metro-babel-register": "0.58.0","metro-react-native-babel-transformer": "0.58.0","metro-source-map": "0.58.0","nullthrows": "^1.1.1","pretty-format": "^24.7.0","promise": "^7.1.1","prop-types": "^15.7.2","react-devtools-core": "^4.0.6","react-refresh": "^0.4.0","regenerator-runtime": "^0.13.2","scheduler": "0.17.0","stacktrace-parser": "^0.1.3","use-subscription": "^1.0.0","whatwg-fetch": "^3.0.0"  },"deprecated": false,"description": "A framework for building native apps using React","detox": {"test-runner": "jest","runner-config": "RNTester/e2e/config.json","specs": "","configurations": {"ios.sim.release": {"binaryPath": "RNTester/build/Build/Products/Release-iphonesimulator/RNTester.app/","build": "xcodebuild -workspace RNTester/RNTesterPods.xcworkspace -scheme RNTester -configuration Release -sdk iphonesimulator -derivedDataPath RNTester/build -UseModernBuildSystem=NO -quiet","type": "ios.simulator","name": "iPhone 6s"      },"ios.sim.debug": {"binaryPath": "RNTester/build/Build/Products/Debug-iphonesimulator/RNTester.app/","build": "xcodebuild -workspace RNTester/RNTesterPods.xcworkspace -scheme RNTester -configuration Debug -sdk iphonesimulator -derivedDataPath RNTester/build -UseModernBuildSystem=NO -quiet","type": "ios.simulator","name": "iPhone 6s"      }    }  },"devDependencies": {"@babel/core": "^7.0.0","@babel/generator": "^7.5.0","@react-native-community/eslint-plugin": "file:packages/eslint-plugin-react-native-community","@reactions/component": "^2.0.2","async": "^2.4.0","babel-eslint": "10.0.1","clang-format": "^1.2.4","coveralls": "^3.0.2","detox": "14.5.1","eslint": "5.1.0","eslint-config-fb-strict": "24.3.0","eslint-config-fbjs": "2.1.0","eslint-config-prettier": "^6.0.0","eslint-plugin-babel": "^5.3.0","eslint-plugin-eslint-comments": "^3.1.1","eslint-plugin-flowtype": "2.50.3","eslint-plugin-jest": "22.4.1","eslint-plugin-jsx-a11y": "6.2.1","eslint-plugin-prettier": "2.6.2","eslint-plugin-react": "7.12.4","eslint-plugin-react-hooks": "^2.0.1","eslint-plugin-react-native": "3.8.1","eslint-plugin-relay": "1.4.1","flow-bin": "^0.113.0","flow-remove-types": "1.2.3","jest": "^24.8.0","jest-junit": "^6.3.0","jscodeshift": "^0.6.2","mkdirp": "^0.5.1","prettier": "1.17.0","react": "16.11.0","react-test-renderer": "16.11.0","shelljs": "^0.7.8","signedsource": "^1.0.0","ws": "^6.1.4","yargs": "^14.2.0"  },"engines": {"node": ">=8.3"  },"files": ["!template/node_modules","!template/package-lock.json","!template/yarn.lock",".flowconfig","android","cli.js","flow","index.js","init.sh","interface.js","jest-preset.js","jest","lib","Libraries","LICENSE","local-cli","packager","React-Core.podspec","react-native.config.js","react.gradle","React.podspec","React","ReactAndroid","ReactCommon","README.md","rn-get-polyfills.js","scripts/compose-source-maps.js","scripts/ios-configure-glog.sh","scripts/ios-install-third-party.sh","scripts/launchPackager.bat","scripts/launchPackager.command","scripts/node-binary.sh","scripts/packager.sh","scripts/react-native-xcode.sh","template.config.js","template","third-party-podspecs"  ],"homepage": "https://github.com/facebook/react-native#readme","jest-junit": {"outputDirectory": "reports/junit","outputName": "js-test-results.xml"  },"license": "MIT","name": "react-native","peerDependencies": {"react": "16.11.0"  },"repository": {"type": "git","url": "git+ssh://git@github.com/facebook/react-native.git"  },"scripts": {"build-ios-e2e": "detox build -c ios.sim.release","clang-format": "clang-format -i --glob=*/**/*.{h,cpp,m,mm}","docker-build-android": "docker build -t reactnativeci/android -f .circleci/Dockerfiles/Dockerfile.android .","docker-setup-android": "docker pull reactnativecommunity/react-native-android","flow": "flow","flow-check-android": "flow check --flowconfig-name .flowconfig.android","flow-check-ios": "flow check","format": "npm run prettier && npm run clang-format","format-check": "prettier --list-different \"./**/*.{js,md,yml}\"","lint": "eslint .","lint-ci": "./scripts/circleci/analyze_code.sh && yarn shellcheck","prettier": "prettier --write \"./**/*.{js,md,yml}\"","shellcheck": "./scripts/circleci/analyze_scripts.sh","start": "react-native start","test": "jest","test-android-all": "yarn run docker-build-android && yarn run test-android-run-unit && yarn run test-android-run-instrumentation && yarn run test-android-run-e2e","test-android-e2e": "yarn run docker-build-android && yarn run test-android-run-e2e","test-android-instrumentation": "yarn run docker-build-android && yarn run test-android-run-instrumentation","test-android-run-e2e": "docker run --privileged -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-ci-e2e-tests.sh --android --js","test-android-run-instrumentation": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-instrumentation-tests.sh","test-android-run-unit": "docker run --cap-add=SYS_ADMIN -it reactnativeci/android bash .circleci/Dockerfiles/scripts/run-android-docker-unit-tests.sh","test-android-unit": "yarn run docker-build-android && yarn run test-android-run-unit","test-ci": "jest --maxWorkers=2 --ci --reporters=\"default\" --reporters=\"jest-junit\"","test-ios": "./scripts/objc-test.sh test","test-ios-e2e": "detox test -c ios.sim.release RNTester/e2e"  },"version": "0.62.2"}

Viewing all articles
Browse latest Browse all 16552

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>