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.

Archive crashing with main.jsbundle does not exist (after upgrade to xcode 10.2)

See original GitHub issue

Hi there,

I’m trying to make app archive with command line and got this error:

Loading dependency graph, done.
error SHA-1 for file /Users/Admin/Projects/app/node_modules/metro/src/lib/polyfills/require.js (/Users/Admin/Projects/app/node_modules/metro/src/lib/polyfills/require.js) is not computed. Run CLI with --verbose flag for more details.
+ [[ false != true ]]
+ [[ ! -f /Users/Admin/Library/Developer/Xcode/DerivedData/app-erjlbyzectedrjajiphwvhbfwswh/Build/Intermediates.noindex/ArchiveIntermediates/app/BuildProductsPath/Release-iphoneos/app.app/main.jsbundle ]]
+ echo 'error: File /Users/Admin/Library/Developer/Xcode/DerivedData/app-erjlbyzectedrjajiphwvhbfwswh/Build/Intermediates.noindex/ArchiveIntermediates/app/BuildProductsPath/Release-iphoneos/app.app/main.jsbundle does not exist. This must be a bug with'
error: File /Users/Admin/Library/Developer/Xcode/DerivedData/app-erjlbyzectedrjajiphwvhbfwswh/Build/Intermediates.noindex/ArchiveIntermediates/app/BuildProductsPath/Release-iphoneos/app.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 version:

  React Native Environment Info:
    System:
      OS: macOS 10.14.5
      CPU: (4) x64 Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
      Memory: 18.16 MB / 8.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 8.15.1 - /usr/local/bin/node
      npm: 6.4.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.2, macOS 10.14, tvOS 12.2, watchOS 5.2
    IDEs:
      Xcode: 10.2.1/10E1001 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.8.3 => 16.8.3 
      react-native: 0.59.8 => 0.59.8 
    npmGlobalPackages:
      react-native-cli: 2.0.1

Steps To Reproduce

xcodebuild -workspace app.xcworkspace -scheme app -sdk iphoneos -configuration AppStoreDistribution archive -archivePath $PWD/build/app.xcarchive

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:10
  • Comments:14

github_iconTop GitHub Comments

2reactions
dvukmancommented, Jul 23, 2019

It turned out I had the Current node installed instead of the LTS version. Now it’s working.

1reaction
cvvspbcommented, Nov 21, 2019

I use nvm for node version management. Tried to upgrade node, got the same issue.

Seems like I forgot to reinstall global packages: Migrating from 8.12.0 to 13.1.0:

nvm install 13.1.0 --reinstall-packages-from=8.12.0
nvm use 13.1.0
nvm alias default 13.1.0

That fixed the issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

main.jsbundle does not exist. this must be a bug with + echo ...
Next, open your project using XCode, right click on your project name then click Add Files to " YourProjectName ", choose the main.jsbundle...
Read more >
Impossible to build archive | Apple Developer Forums
Since updating xcode to 12.4, I can't produce any archives, but before that everything was ... Release-iphoneos / jdc.app / main.jsbundle does not...
Read more >
[Solved]-Xcode not reflecting latest app codes from react-native
The copy message does not show up. FAIL, new changes not reflected in the build. Note that main.jsbundle exists in both Xcode and...
Read more >
Main.Jsbundle Does Not Exist. This Must Be A Bug ... - ADocLib
Ask questionsArchive crashing with main.jsbundle does not exist after upgrade to xcode 10.2. Hi there. I'm trying to make app archive with command...
Read more >
React Native build failed - "Error: main.jsbundle does not exist"
error: File /Users/distiller/Library/Developer/Xcode/DerivedData/xxx/BuildProductsPath/Release-iphoneos/xxx/main.jsbundle does not exist.
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