-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
main.jsbundle does not exist #38672
Comments
|
|
I faced similar issue. |
i am facing the exact issue and i have removed all duplicated version of metro in my package └─┬ react-native@0.71.13 this is my package.json : |
Same issue for me, still unable to find a solution :/ |
I faced this exact issue on a bare React Native project, but I managed to get through it! 🥳 It turned out to be just a cache problem. I had switched from building the version of my app that used React Native 0.72 to building an old one using React Native 0.70. Both the local and CD builds failed for the 0.70 version, with the error message Initially, I tried to relaunch the process after cleaning the It was probably a bit overkill. Maybe just deleting the Pods folder or Pods cache would have been enough, but anyway, it worked! I recommend it to anyone wanting to get rid of the "cache param" when debugging such an issue - one of your worst enemy, TL;DR :
|
Hi same issue after updating react-native to 0.72.4 from 0.70.5. |
After I forced Xcode to use the same Node.js version as my project, this issue stopped happening. To force the Node.js version, I simply set the default version to the correct one using the command:
|
I was facing this problem when running "Archive" on Xcode. After many wasted hours of trying to figure it out, I managed to make it work by first running the app on my iPhone and then trying "Archive" once again. |
Description
App runs fine on emulator but has problem during build for iOS:
eas build --profile production --platform ios
Partial results of run below:
› Generating debug worksideclient » worksideclient.app.dSYM
› Executing worksideclient » Bundle React Native code and images
❌ error: File /Users/expo/Library/Developer/Xcode/DerivedData/worksideclient-efpbaluhjmqryqdmspbuynsaebot/Build/Intermediates.noindex/ArchiveIntermediates/worksideclient/BuildProductsPath/Release-iphoneos/worksideclient.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
▸ ** ARCHIVE FAILED **
▸ The following build commands failed:
▸ PhaseScriptExecution Bundle\ React\ Native\ code\ and\ images /Users/expo/Library/Developer/Xcode/DerivedData/worksideclient-efpbaluhjmqryqdmspbuynsaebot/Build/Intermediates.noindex/ArchiveIntermediates/worksideclient/IntermediateBuildFilesPath/worksideclient.build/Release-iphoneos/worksideclient.build/Script-00DD1BFF1BD5951E006B06BC.sh (in target 'worksideclient' from project 'worksideclient')
▸ (1 failure)
2023-07-28 12:14:06.281 xcodebuild[4760:13790] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
** ARCHIVE FAILED **
The following build commands failed:
(1 failure)
Exit status: 65
+-------------+-------------------------+
| Build environment |
+-------------+-------------------------+
| xcode_path | /Applications/Xcode.app |
| gym_version | 2.213.0 |
| sdk | iPhoneOS16.4.sdk |
+-------------+-------------------------+
Looks like fastlane ran into a build/archive error with your project
React Native Version
0.72.3
Output of
npx react-native info
System:
OS: Windows 10 10.0.19045
CPU: (4) x64 Intel(R) Core(TM) i3-8130U CPU @ 2.20GHz
Memory: 1.56 GB / 7.91 GB
Binaries:
Node:
version: 18.16.0
path: C:\Program Files\nodejs\node.EXE
Yarn: Not Found
npm:
version: 9.8.0
path: C:\Program Files\nodejs\npm.CMD
Watchman: Not Found
SDKs:
Android SDK: Not Found
Windows SDK:
AllowAllTrustedApps: Disabled
Versions:
- 10.0.19041.0
- 10.0.22000.0
IDEs:
Android Studio: Not Found
Visual Studio:
- 17.5.33530.505 (Visual Studio Community 2022)
Languages:
Java:
version: 11.0.16.1
path: C:\Program Files\Microsoft\jdk-11.0.16.101-hotspot\bin\javac.EXE
Ruby:
version: 3.2.2
path: C:\Ruby32-x64\bin\ruby.EXE
npmPackages:
"@react-native-community/cli": Not Found
react:
installed: 18.2.0
wanted: ^18.2.0
react-native:
installed: 0.72.3
wanted: ^0.72.3
react-native-windows: Not Found
npmGlobalPackages:
"react-native": Not Found
Android:
hermesEnabled: Not found
newArchEnabled: Not found
iOS:
hermesEnabled: Not found
newArchEnabled: Not found
Steps to reproduce
App worked fine on emulator and for expo build until adding in Amplify Auth. Now the emulator works but build fails.
Snack, screenshot, or link to a repository
Fi I simply comment out the following the build works fine:
// import { Amplify } from 'aws-amplify';
// import awsconfig from './src/aws-exports';
// Amplify.configure(awsconfig);
The text was updated successfully, but these errors were encountered: