Skip to content

[macos-12] [0.70.0-rc.0-1] Release-iphonesimulator/MyApp.app/main.jsbundle does not exist #34274

Closed
@leotm

Description

@leotm

Description

Note: macOS 13b builds/runs fine locally

Similar older cases not on RN New arch

# ...
⚠️  ld: method '-compareToSize:thresholdRatio:' in category from /Users/runner/Library/Developer/Xcode/DerivedData/MyApp-brtubmujgpwqbxfcbmbgsgmzrura/Build/Products/Release-iphonesimulator/React-RCTText/libReact-RCTText.a(NSTextStorage+FontScaling.o) conflicts with same method from another category
⚠️  ld: method '-scaleFontSizeWithRatio:minimumFontSize:maximumFontSize:' in category from /Users/runner/Library/Developer/Xcode/DerivedData/MyApp-brtubmujgpwqbxfcbmbgsgmzrura/Build/Products/Release-iphonesimulator/React-RCTText/libReact-RCTText.a(NSTextStorage+FontScaling.o) conflicts with same method from another category
▸ Processing Info.plist
▸ Running script 'Bundle React Native code and images'
    the transform cache was reset.

❌  error: File /Users/runner/Library/Developer/Xcode/DerivedData/MyApp-brtubmujgpwqbxfcbmbgsgmzrura/Build/Products/Release-iphonesimulator/MyApp.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

▸ Generating 'MyApp.app.dSYM'
error Failed to build iOS project. We ran "xcodebuild" command but it exited with error code 65. To debug build logs further, consider building your app with Xcode.app, by opening MyApp.xcworkspace.
info Run CLI with --verbose flag for more details.
Error: Process completed with exit code 1.

Example log or latest commits

A suspicion :suspect: (wasn't this, still happening on unpatched 0.70.0-rc.1)

In 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
Run npx react-native info
  npx react-native info
  shell: /bin/bash -e {0}
npm WARN exec The following package was not found and will be installed: react-native
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated resolve-url@0.[2](https://github.com/leotm/react-native-template-new-architecture/runs/7519128906?check_suite_focus=true#step:3:2).1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated source-map-resolve@0.5.[3](https://github.com/leotm/react-native-template-new-architecture/runs/7519128906?check_suite_focus=true#step:3:3): See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated uglify-es@3.3.[9](https://github.com/leotm/react-native-template-new-architecture/runs/7519128906?check_suite_focus=true#step:3:10): support for ECMAScript is superseded by `uglify-js` as of v3.13.0
error Failed to load configuration of your project.
info Run CLI with --verbose flag for more details.
Error: Process completed with exit code 1.

Similar to

Nvm, forgot to run it after Yarn

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.
info Fetching system and libraries information...
System:
    OS: macOS 12.4
    CPU: (3) x[6](https://github.com/leotm/react-native-template-new-architecture/runs/7519237740?check_suite_focus=true#step:4:6)4 Intel(R) Xeon(R) CPU E5-1650 v2 @ 3.50GHz
    Memory: 3.64 GB / 14.00 GB
    Shell: 3.2.5[7](https://github.com/leotm/react-native-template-new-architecture/runs/7519237740?check_suite_focus=true#step:4:7) - /bin/bash
  Binaries:
    Node: 16.16.0 - /usr/local/bin/node
    Yarn: 3.2.2 - ~/.yarn/bin/yarn
    npm: [8](https://github.com/leotm/react-native-template-new-architecture/runs/7519237740?check_suite_focus=true#step:4:8).11.0 - /usr/local/bin/npm
    Watchman: Not Found
  Managers:
    CocoaPods: 1.11.3 - /usr/local/lib/ruby/gems/3.0.0/bin/pod
  SDKs:
    iOS SDK:
      Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
    Android SDK:
      API Levels: 27, 28, 2[9](https://github.com/leotm/react-native-template-new-architecture/runs/7519237740?check_suite_focus=true#step:4:9), 30, 31, 32, 33
      Build Tools: 27.0.0, 27.0.1, 27.0.2, 27.0.3, 28.0.0, 28.0.1, 28.0.2, 28.0.3, 29.0.0, 29.0.1, 29.0.2, 29.0.3, 30.0.0, 30.0.1, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 33.0.0
      Android NDK: 23.2.8568313
  IDEs:
    Android Studio: Not Found
    Xcode: 13.4.1/13F[10](https://github.com/leotm/react-native-template-new-architecture/runs/7519237740?check_suite_focus=true#step:4:10)0 - /usr/bin/xcodebuild
  Languages:
    Java: 1.8.0_332 - /usr/bin/javac
  npmPackages:
    @react-native-community/cli: next => 8.0.0-alpha.0 
    react: [18](https://github.com/leotm/react-native-template-new-architecture/runs/7519237740?check_suite_focus=true#step:4:18).1.0 => 18.1.0 
    react-native: 0.70.0-rc.0 => 0.70.0-rc.0 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Steps to reproduce

Snack, code example, screenshot, or link to a repository

https://github.com/leotm/react-native-template-new-architecture/pull/690/files

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions