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

[iOS][SDK 47] Fastlane Build Error | hermesc: No such file or directory #2104

Open
vince971 opened this issue Oct 28, 2023 · 9 comments
Open
Labels
eas build needs review Issue is ready to be reviewed by a maintainer

Comments

@vince971
Copy link

vince971 commented Oct 28, 2023

Build/Submit details page URL

https://expo.dev/accounts/vince971/projects/QoQo/builds/db11ba58-35c3-4768-8a86-2ca47239abfd

Summary

Hello, expo team.

Since yesterday, I have a problem with building my project.
When performing the eas build --platform iso --profile development everything is working fine however, as soon as I run the command eas build --platform iso for production environment, I'm facing this error in the Fastlane job.

P.S. In order to save some private info I put redacted in place of name of the app.

❌ error: File /Users/expo/Library/Developer/Xcode/DerivedData/redacted-fmjntttqitbakgfigbgrlovuipuc/Build/Intermediates.noindex/ArchiveIntermediates/redacted/BuildProductsPath/Release-iphoneos/redacted.app/main.jsbundle does not exist. This must be a bug with React Native, please report it here: https://github.com/facebook/react-native/issues

Run script build phase '[CP-User] Generate app.manifest for expo-updates' will be run during every build because it does not specify any outputs. To address this warning, either add output dependencies to the script phase, or configure it to run in every build by unchecking "Based on dependency analysis" in the script phase. (in target 'EXUpdates' from project 'Pods')

▸ ** ARCHIVE FAILED **

▸ The following build commands failed:

▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/redacted-fmjntttqitbakgfigbgrlovuipuc/Build/Intermediates.noindex/ArchiveIntermediates/redacted/IntermediateBuildFilesPath/redacted.build/Release-iphoneos/redacted.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'redacted' from project 'redacted')

▸ (1 failure)

** ARCHIVE FAILED **

The following build commands failed:

PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/redacted-fmjntttqitbakgfigbgrlovuipuc/Build/Intermediates.noindex/ArchiveIntermediates/redacted/IntermediateBuildFilesPath/redacted.build/Release-iphoneos/redacted.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'redacted' from project 'redacted')

(1 failure)

Exit status: 65

Managed or bare?

Managed

Environment

expo-env-info 1.0.5 environment info:
System:
OS: Windows 10 10.0.19045
Binaries:
Node: 18.12.1 - C:\Program Files\nodejs\node.EXE
npm: 9.6.3 - C:\Program Files\nodejs\npm.CMD
npmPackages:
expo: ~47.0.12 => 47.0.13
react: 18.1.0 => 18.1.0
react-dom: 18.1.0 => 18.1.0
react-native: 0.70.14 => 0.70.14
react-native-web: ~0.18.9 => 0.18.12
Expo Workflow: managed

✔ Check Expo config for common issues
✔ Check package.json for common issues
✔ Check dependencies for packages that should not be installed directly
✔ Check for common project setup issues
✔ Check npm/ yarn versions
✔ Check Expo config (app.json/ app.config.js) schema
✔ Check that native modules do not use incompatible support packages
✔ Check for legacy global CLI installed locally
✔ Check that packages match versions required by installed Expo SDK
✔ Check that native modules use compatible support package versions for installed Expo SDK

Didn't find any issues with the project!

Error output

**In the Fastlane logs I have this: **

`The following build commands failed:

▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/redacted-fmjntttqitbakgfigbgrlovuipuc/Build/Intermediates.noindex/ArchiveIntermediates/redacted/IntermediateBuildFilesPath/redacted.build/Release-iphoneos/redacted.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'redacted' from project 'redacted')

▸ (1 failure)

** ARCHIVE FAILED **`

**In the XCode logs I found this: **

+ /Users/expo/workingdir/build/ios/Pods/hermes-engine/destroot/bin/hermesc -emit-binary -O -out /Users/expo/Library/Developer/Xcode/DerivedData/redacted-fmjntttqitbakgfigbgrlovuipuc/Build/Intermediates.noindex/ArchiveIntermediates/redacted/BuildProductsPath/Release-iphoneos/redacted.app/main.jsbundle /Users/expo/Library/Developer/Xcode/DerivedData/redacted-fmjntttqitbakgfigbgrlovuipuc/Build/Intermediates.noindex/ArchiveIntermediates/redacted/BuildProductsPath/Release-iphoneos/main.jsbundle /Users/expo/workingdir/build/node_modules/react-native/scripts/react-native-xcode.sh: line 169: /Users/expo/workingdir/build/ios/Pods/hermes-engine/destroot/bin/hermesc: No such file or directory

Reproducible demo or steps to reproduce from a blank project

I don't have an easy way to provide a reproducible demo for this issue.

@vince971 vince971 added the needs review Issue is ready to be reviewed by a maintainer label Oct 28, 2023
@Bakalavr113
Copy link

same issue

@Pranav2509
Copy link

Same issue. What are the possible solutions?

@vince971
Copy link
Author

This fixed it for me

https://docs.expo.dev/guides/using-hermes/#using-sdk-47-or-lower

@Huguet57
Copy link

This fixed it for me

https://docs.expo.dev/guides/using-hermes/#using-sdk-47-or-lower

Fixed it for me too

@roshangm1
Copy link

If you use hermes but still getting this error then don't forget to check Podfile.properties.json if you have that. It might have "expo.jsEngine": "jsc". At least this was the case for me. Someone in my team had changed that for some reason.

@Linuhusainnk
Copy link

any solution for react native cli ?

@tuanngocptn
Copy link

I have the same issue with RN, not Expo. Anyone fixed this problem ?

@rnarang-goauto
Copy link

I have the same issue with RN, not Expo. Anyone fixed this problem ?

I am facing the similar issue on Appcenter CI. (Not using Expo)
Were you able to resolve this ?

@Linuhusainnk
Copy link

I have the same issue with RN, not Expo. Anyone fixed this problem ?

Try by removing xcode env

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
eas build needs review Issue is ready to be reviewed by a maintainer
Projects
None yet
Development

No branches or pull requests

10 participants