react-native-xcode error after upgrading to 0.46
See original GitHub issueEnvironment
react-native:
⇒ react-native -v
react-native-cli: 2.0.1
react-native: 0.46.1
node: v8.1.3
npm: 5.0.3
yarn: 0.27.5
- Target Platform: iOS
- Development Operating System: macOS Sierra
- Build tools: Xcode 8.3.3
Steps to Reproduce
- Project with
RN 0.44
yarn upgrade --latest
react-native-git-upgrade
react-native run-ios
Expected Behavior
Expect my project to build
Actual Behavior
After upgrading to RN 0.46
from 0.44
i tried to run the project by using react-native run-ios
but it fails building it with this error:
react-native run-ios
produce this error:
export WRAP_ASSET_PACKS_IN_SEPARATE_DIRECTORIES=NO
export XCODE_APP_SUPPORT_DIR=/Applications/Xcode.app/Contents/Developer/Library/Xcode
export XCODE_PRODUCT_BUILD_VERSION=8E3004b
export XCODE_VERSION_ACTUAL=0833
export XCODE_VERSION_MAJOR=0800
export XCODE_VERSION_MINOR=0830
export XPCSERVICES_FOLDER_PATH=myApp.app/XPCServices
export YACC=yacc
export arch=x86_64
export variant=normal
/bin/sh -c /Users/vood/dev/myApp/ios/build/Build/Intermediates/myApp.build/Debug-iphonesimulator/myApp.build/Script-00DD1BFF1BD5951E006B06BC.sh
/Users/vood/dev/myApp/ios/build/Build/Intermediates/myApp.build/Debug-iphonesimulator/myApp.build/Script-00DD1BFF1BD5951E006B06BC.sh: line 3: ../node_modules/react-native/packager/react-native-xcode.sh: No such file or directory
** BUILD FAILED **
The following build commands failed:
PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images build/Build/Intermediates/myApp.build/Debug-iphonesimulator/myApp.build/Script-00DD1BFF1BD5951E006B06BC.sh
Issue Analytics
- State:
- Created 6 years ago
- Comments:21 (4 by maintainers)
Top Results From Across the Web
React native iOS build error after updating a react native
This happened to me after installing a package & running npx pod-install. I just got this error in one of the projects the...
Read more >Common Issues Coming in First React Native Project Set Up.
FirstLy Go through Xcode → Product → Manage Scheme → and then from list check React as Shared library. 5.boost/config/user.hpp file not found ......
Read more >React Native App no longer builds … | Apple Developer Forums
My react native app previously built and ran on a simulator in xcode 11. However sine upgrading to xcode 12.5 i get the...
Read more >Troubleshooting - React Native
This error indicates that the codegen script that is injected into the Xcode build pipeline has exited early. You may get this for...
Read more >Using Hermes - React Native
If you are using a non-standard way of loading the JS bundle, it is possible that the HermesInternal variable is available but you...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
change
../node_modules/react-native/packager/react-native-xcode.sh
to../node_modules/react-native/scripts/react-native-xcode.sh
@sandinosaso sorry I should have been clearer.
Open in Xcode -> Select your Project -> “Build Phases” tab -> “Bundle React Native code and images”
Then change the above paths.