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

Unable to run release build #22335

Closed
3 tasks done
isaaclem opened this issue Nov 18, 2018 · 4 comments
Closed
3 tasks done

Unable to run release build #22335

isaaclem opened this issue Nov 18, 2018 · 4 comments
Labels
Resolution: Locked This issue was locked by the bot.

Comments

@isaaclem
Copy link
Contributor

isaaclem commented Nov 18, 2018

Environment

Run react-native info in your terminal and paste its contents here.

React Native Environment Info:
    System:
      OS: macOS High Sierra 10.13.6
      CPU: (4) x64 Intel(R) Core(TM) i5-7360U CPU @ 2.30GHz
      Memory: 26.61 MB / 8.00 GB
      Shell: 5.3 - /bin/zsh
    Binaries:
      Node: 11.0.0 - /usr/local/bin/node
      Yarn: 1.10.1 - /usr/local/bin/yarn
      npm: 6.4.1 - /usr/local/bin/npm
      Watchman: 4.9.0 - /usr/local/bin/watchman
    SDKs:
      iOS SDK:
        Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1
      Android SDK:
        API Levels: 23, 25, 26, 27, 28
        Build Tools: 23.0.1, 25.0.0, 25.0.2, 25.0.3, 26.0.1, 26.0.2, 26.0.3, 27.0.3, 28.0.1, 28.0.2
        System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-25 | Google APIs Intel x86 Atom_64, android-26 | Google Play Intel x86 Atom
    IDEs:
      Android Studio: 3.2 AI-181.5540.7.32.5014246
      Xcode: 10.1/10B61 - /usr/bin/xcodebuild
    npmPackages:
      react: 16.6.1 => 16.6.1
      react-native: 0.57.5 => 0.57.5
    npmGlobalPackages:
      react-native-git-upgrade: 0.2.7

Description

Running the below command to build and hit exception:

xcodebuild clean build -project UdemyFastlaneXX.xcodeproj -configuration Release -scheme UdemyFastlaneXX

EXCEPTIONS

SHA-1 for file /Users/isaac/code/reactnative/UdemyFastlaneXX/index.js is not computed

ReferenceError: SHA-1 for file /Users/isaac/code/reactnative/UdemyFastlaneXX/index.js is not computed
    at DependencyGraph.getSha1 (/Users/isaac/code/reactnative/UdemyFastlaneXX/node_modules/metro/src/node-haste/DependencyGraph.js:201:13)
    at /Users/isaac/code/reactnative/UdemyFastlaneXX/node_modules/metro/src/DeltaBundler/Transformer.js:164:26
    at Generator.next (<anonymous>)
    at step (/Users/isaac/code/reactnative/UdemyFastlaneXX/node_modules/metro/src/DeltaBundler/Transformer.js:31:30)
    at /Users/isaac/code/reactnative/UdemyFastlaneXX/node_modules/metro/src/DeltaBundler/Transformer.js:50:14
    at new Promise (<anonymous>)
    at /Users/isaac/code/reactnative/UdemyFastlaneXX/node_modules/metro/src/DeltaBundler/Transformer.js:28:12
    at Transformer.transformFile (/Users/isaac/code/reactnative/UdemyFastlaneXX/node_modules/metro/src/DeltaBundler/Transformer.js:188:7)
    at /Users/isaac/code/reactnative/UdemyFastlaneXX/node_modules/metro/src/Bundler.js:78:34
    at Generator.next (<anonymous>)

+ [[ false != true ]]
+ [[ ! -f /Users/isaac/Library/Developer/Xcode/DerivedData/UdemyFastlaneXX-eltuekpfuqqbnmboxhdjzwuzjcis/Build/Products/Release-iphoneos/UdemyFastlaneXX.app/main.jsbundle ]]
+ echo 'error: File /Users/isaac/Library/Developer/Xcode/DerivedData/UdemyFastlaneXX-eltuekpfuqqbnmboxhdjzwuzjcis/Build/Products/Release-iphoneos/UdemyFastlaneXX.app/main.jsbundle does not exist. This must be a bug with'
error: File /Users/isaac/Library/Developer/Xcode/DerivedData/UdemyFastlaneXX-eltuekpfuqqbnmboxhdjzwuzjcis/Build/Products/Release-iphoneos/UdemyFastlaneXX.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

GenerateDSYMFile /Users/isaac/Library/Developer/Xcode/DerivedData/UdemyFastlaneXX-eltuekpfuqqbnmboxhdjzwuzjcis/Build/Products/Release-iphoneos/UdemyFastlaneXX.app.dSYM /Users/isaac/Library/Developer/Xcode/DerivedData/UdemyFastlaneXX-eltuekpfuqqbnmboxhdjzwuzjcis/Build/Products/Release-iphoneos/UdemyFastlaneXX.app/UdemyFastlaneXX (in target: UdemyFastlaneXX)
    cd /Users/isaac/Code/ReactNative/UdemyFastlaneXX/ios
    /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/dsymutil /Users/isaac/Library/Developer/Xcode/DerivedData/UdemyFastlaneXX-eltuekpfuqqbnmboxhdjzwuzjcis/Build/Products/Release-iphoneos/UdemyFastlaneXX.app/UdemyFastlaneXX -o /Users/isaac/Library/Developer/Xcode/DerivedData/UdemyFastlaneXX-eltuekpfuqqbnmboxhdjzwuzjcis/Build/Products/Release-iphoneos/UdemyFastlaneXX.app.dSYM
@Nantris
Copy link

Nantris commented Nov 22, 2018

I can't even build development on Windows unless I remove watchman from the picture. When I do that though, the build seems to time out when I include my node_modules folder.

@CarGuo
Copy link

CarGuo commented Nov 22, 2018

#18313 may help you

@Nantris
Copy link

Nantris commented Nov 22, 2018

@CarGuo, thanks for your response. I'm confused though, what in particular might be of help here? I'm using Expo, so it seems not applicable, but maybe I'm mistaken?

Thanks again.

@CarGuo
Copy link

CarGuo commented Nov 22, 2018

Sorry,My mistake,this may help to this issue with @isaaclem main.jsbundle does not exist

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.

5 participants