Skip to content

main.jsbundle does not exist #38672

Closed
Closed
@suntan-superman

Description

@suntan-superman

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

Bundler cache is empty, rebuilding (this may take a minute)

❌ 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:

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)

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: ExpoIssues that are related to Expo CLI/EAS or other integration built on top of React Native📦Bundler

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions