-
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
[macos-12] [0.70.0-rc.0-1] Release-iphonesimulator/MyApp.app/main.jsbundle does not exist #34274
Comments
Hey @leotm , thanks for posting. Just a quick sanity check, is bundler running without errors on the machine that produces this error?
|
np ^ good question, i've added a bundle step before the build which looks fine (presuming index .ts is ok too) Run npx react-native bundle --entry-file='index.ts' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
npx react-native bundle --entry-file='index.ts' --bundle-output='./ios/main.jsbundle' --dev=false --platform='ios' --assets-dest='./ios'
shell: /bin/bash -e {0}
warn Package react-native-flipper contains invalid configuration: "dependency.platforms.ios.project" is not allowed. Please verify it's properly linked using "react-native config" command and contact the package maintainers about this.
Welcome to Metro!
Fast - Scalable - Integrated
info Writing bundle output to:, ./ios/main.jsbundle
info Done writing bundle output
info Copying 1 asset files
info Done copying assets |
jus spotted think i'm going to remove my dependency to stick to the RN 0.70.0-rc.0 one
note: now on 9.0.0-alpha.5 in RN 0.70.0-rc.1 |
done
next steps
update template/repro
new project
if still happening, check below for possible patching RN again w Yarn v3 or check CLI changes if regression there |
@leotm can you help me understand the scope of this issue you are reporting? Is there a way to repro locally? |
Follow-up: - facebook/react-native#34274 (comment) Also update parts in-line with current main - https://github.com/facebook/react-native/tree/main/template
sure jus noticed been unable to build iOS Release since but had no prob locally on ye olde MBP M1 (might wait for the M3) if you're still on macOS-12 stable then hopefully can repro locally here exhausted most options can think of so think next step my side will be to try to repro in a new repo w vanilla then if still getting the error try to dive deeper and come up w a PR |
great stuff so far, where them video chapters at (; |
closing since will figure/fix eventually, betting my big bucks missed smth some point during the upg process since 0.61.5 so frequently glancing back n forth at our template on |
* Draft ios.yml * Fix indentation * Update ios.yml * Build app for release * Fix prod build error w Flipper, set env flag Issue - reactwg/react-native-releases#21 (comment) - facebook/react-native#33764 PR - facebook/react-native#33882 * Remove stale comment * Temporarily add `npx react-native info` * Move `npx react-native info` after `yarn` * Add release bundle step before build * Update bundle script * Update bundle script * Update RN CLI from next (8.0.0-alpha.0) to 9.0.0-alpha.5 * Remove devDep @react-native-community/cli No luck with 9.0.0-alpha.5 Should now use npm:9.0.0-alpha.4 (via npm:^9.0.0-alpha.3) * Try bundling also to ios/MyApp/main.jsbundle * Add debug before release bundle/build * Fix yarn lockfile/cache conflict res * Add normal pod install before debug * Comment debug pod install and build, working fine * Update pbxproj and xcscheme Follow-up: - facebook/react-native#34274 (comment) Also update parts in-line with current main - https://github.com/facebook/react-native/tree/main/template * Disable Metro experimentalImportSupport * Resolve Yarn lockfile From conflict res * Rename xcode.env prefix _ to . * Remove react-native-flipper * Revert "Remove react-native-flipper" This reverts commit 646dd74. * Revert "Rename xcode.env prefix _ to ." This reverts commit 8f15810. * Revert "Disable Metro experimentalImportSupport" This reverts commit 41ed14b. * Add index.js for iOS Release bundling * Add back @react-native-community/cli 9.0.0-alpha.5 * Revert "Try bundling also to ios/MyApp/main.jsbundle" This reverts commit 80e7354. * Revert "Comment debug pod install and build, working fine" This reverts commit 0ea4d01. * Update workflow comments
works fine!! when js code has error, main.bundle will create fail, then archive release package will fail too. |
Description
Note: macOS 13b builds/runs fine locally
Similar older cases not on RN New arch
Example log or latest commits
A suspicion (wasn't this, still happening on unpatched 0.70.0-rc.1)
react-native
Yarn v3 patches somehow cause this?react_native_pods.rb
for iOS Release build #34234In which case reverting the Yarn v3 patch then re-applying
Should in theory fix
Version
0.70.0-rc.0 (patched), 0.70.0-rc.1 (unpatched, current)
Previously patched 0.70.0-rc.0 (1-liner) to allow
PRODUCTION=1 pod install
Output of
npx react-native info
remember to yarn install first
Similar topod install & react-native info fail with @react-native-community/cli-config 8.0.3 and ramda 0.28.0 installed react-native-community/cli#1650React Native is not accepting project.android.mainFilePath as an acceptable configuration #34052Nvm, forgot to run it after
Yarn
Steps to reproduce
macos-12
leotm/react-native-template-new-architecture#690Snack, code example, screenshot, or link to a repository
https://github.com/leotm/react-native-template-new-architecture/pull/690/files
The text was updated successfully, but these errors were encountered: