question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-native-xcode error after upgrading to 0.46

See original GitHub issue

Environment

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

  1. Target Platform: iOS
  2. Development Operating System: macOS Sierra
  3. Build tools: Xcode 8.3.3

Steps to Reproduce

  1. Project with RN 0.44
  2. yarn upgrade --latest
  3. react-native-git-upgrade
  4. 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:closed
  • Created 6 years ago
  • Comments:21 (4 by maintainers)

github_iconTop GitHub Comments

335reactions
AndrewJackcommented, Jul 10, 2017

change ../node_modules/react-native/packager/react-native-xcode.sh to ../node_modules/react-native/scripts/react-native-xcode.sh

222reactions
AndrewJackcommented, Jul 12, 2017

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found