Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build failed shell script invocation error : File /Users/louis/Library/Developer/Xcode/DerivedData/Scavenger-evyvzocndqoghkclcbwewolywniz/Build/Products/Release-iphoneos/Scavenger.app/main.jsbundle does not exist #18562

Closed
louiskurniawan03 opened this issue Mar 26, 2018 · 9 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@louiskurniawan03
Copy link

Environment

Environment:
OS: macOS Sierra 10.12.6
Node: 9.3.0
Yarn: Not Found
npm: 5.5.1
Watchman: 4.7.0
Xcode: Xcode 9.2 Build version 9C40b
Android Studio: 3.0 AI-171.4443003

Packages: (wanted => installed)
react: ^16.0.0 => 16.2.0
react-native: ^0.50.3 => 0.50.4

Steps to Reproduce

Expected Behavior

I'm not sure why I'm getting this error. But this happen after I tried to switch to configuration Release. I want to archive my project

Actual Behavior

Build failed from xcode. The build phase already using
export NODE_BINARY=node ../node_modules/react-native/scripts/react-native-xcode.sh

screen shot 2018-03-26 at 5 51 52 pm

@react-native-bot
Copy link
Collaborator

Thanks for posting this! It looks like your issue may refer to an older version of React Native. Can you reproduce the issue on the latest release, v0.54?

Thank you for your contributions.

@hramos hramos removed the Platform: macOS Building on macOS. label Mar 29, 2018
@edxe
Copy link

edxe commented Apr 5, 2018

I have the same problem after installing react-native-fbsdk, still no solution found. Running the app on simulator works just fine, but when doing the build/archive it fails with this same issue. Im running over react-native 0.53.0

@Linrasis
Copy link

Linrasis commented Apr 10, 2018

Same error too.. work fine on iOS Simulator / Device, when create archive i have error and now i have same error when i launch simulator.

  • DEST=/Users/julienschmidt/Library/Developer/Xcode/DerivedData/Prenomsaleatoire-bioyrajacoovpubqfaussbssxixp/Build/Intermediates.noindex/ArchiveIntermediates/Prenomsaleatoire/BuildProductsPath/Release-iphoneos/Prenomsaleatoire.app
  • [[ Release = \D\e\b\u\g ]]
  • BUNDLE_FILE=/Users/julienschmidt/Library/Developer/Xcode/DerivedData/Prenomsaleatoire-bioyrajacoovpubqfaussbssxixp/Build/Intermediates.noindex/ArchiveIntermediates/Prenomsaleatoire/BuildProductsPath/Release-iphoneos/Prenomsaleatoire.app/main.jsbundle
  • node /Users/julienschmidt/Google Drive/Applications/GIT/Prenoms Aleatoire/node_modules/react-native/local-cli/cli.js bundle --entry-file index.js --platform ios --dev false --reset-cache --bundle-output /Users/julienschmidt/Library/Developer/Xcode/DerivedData/Prenomsaleatoire-bioyrajacoovpubqfaussbssxixp/Build/Intermediates.noindex/ArchiveIntermediates/Prenomsaleatoire/BuildProductsPath/Release-iphoneos/Prenomsaleatoire.app/main.jsbundle --assets-dest /Users/julienschmidt/Library/Developer/Xcode/DerivedData/Prenomsaleatoire-bioyrajacoovpubqfaussbssxixp/Build/Intermediates.noindex/ArchiveIntermediates/Prenomsaleatoire/BuildProductsPath/Release-iphoneos/Prenomsaleatoire.app
    module.js:538
    throw err;
    ^

Error: Cannot find module '/Users/julienschmidt/Google'
at Function.Module._resolveFilename (module.js:536:15)
at Function.Module._load (module.js:466:25)
at Function.Module.runMain (module.js:676:10)
at startup (bootstrap_node.js:187:16)
at bootstrap_node.js:608:3

  • [[ false != true ]]
  • [[ ! -f /Users/julienschmidt/Library/Developer/Xcode/DerivedData/Prenomsaleatoire-bioyrajacoovpubqfaussbssxixp/Build/Intermediates.noindex/ArchiveIntermediates/Prenomsaleatoire/BuildProductsPath/Release-iphoneos/Prenomsaleatoire.app/main.jsbundle ]]
  • echo 'error: File /Users/julienschmidt/Library/Developer/Xcode/DerivedData/Prenomsaleatoire-bioyrajacoovpubqfaussbssxixp/Build/Intermediates.noindex/ArchiveIntermediates/Prenomsaleatoire/BuildProductsPath/Release-iphoneos/Prenomsaleatoire.app/main.jsbundle does not exist. This must be a bug with'
    error: File /Users/julienschmidt/Library/Developer/Xcode/DerivedData/Prenomsaleatoire-bioyrajacoovpubqfaussbssxixp/Build/Intermediates.noindex/ArchiveIntermediates/Prenomsaleatoire/BuildProductsPath/Release-iphoneos/Prenomsaleatoire.app/main.jsbundle does not exist. This must be a bug with
  • echo 'React Native, please report it here: https://github.com/facebook/react-native/issues'
    React Native, please report it here: https://github.com/facebook/react-native/issues
  • exit 2

EDIT :
I have moved my folder to desktop and run archive.. work. So...

@r0bbarnk
Copy link

r0bbarnk commented May 28, 2018

For anyone who struggles with this issue. Take a look at your folder-structure and make sure that the outer folder-name for the folder containing the project does not contain a space " ".
Mine was "Good Morning/appName/". i changed it to "GoodMorning/appName/" and the error went away.

@adamgins
Copy link

adamgins commented Jul 11, 2018

@r0bbarnk the top of my project is /Users/adamginsburg/Documents/development/buzzy_rn and I still have the issue. Works fine in debug mode on both emulator and phone... just cannot release build/archive

BTW still on RN 0.51

@creightontaylor
Copy link

Umm someone? I have the same problem

@harudev
Copy link

harudev commented Oct 14, 2018

same problem on rn 0.56.0
is there any solution?

@r0bbarnk
Copy link

r0bbarnk commented Oct 15, 2018

@adamgins I would suggest to remove the underscore from 'buzzy_rn'

@harudev
Copy link

harudev commented Oct 23, 2018

I'm using nvm, and node versions are 6.x, 8.x, 10.x.
I got 'build failed shell script invocation error' but above it there was checkNodeVersion.js (43) error.
I removed 6.x version from nvm and it works.

kelset pushed a commit that referenced this issue Dec 12, 2018
Summary:
Default HelloWorld template for iOS doesn't make production main.jsbundle. This is little bit confusing in compare with Android building app when everything works one first run.

Make it seamless, reduce confuse.
Based on docs https://facebook.github.io/react-native/docs/running-on-device#3-configure-app-to-use-static-bundle

Fixes #22335
Fixes #18562
Pull Request resolved: #22531

Differential Revision: D13372773

Pulled By: cpojer

fbshipit-source-id: 888c675b7d11b1a323445e092ec9ff83924c42f4
@facebook facebook locked as resolved and limited conversation to collaborators Dec 7, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Dec 7, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

9 participants