Skip to content

Build and Run failed on PNPM fresh repo with brownfield plugins #535

@rmit-s3804879-sainathreddy-kodiganti

Description

Environment

Fresh Repo using pnpm create rock
macbook i7 2019
"@rock-js/platform-android": "^0.9.2",
"node": v22.18.0
"pnpm":10.15.0
"dependencies": {
"@callstack/react-native-brownfield": "^1.2.0",
"react": "19.1.0",
"react-native": "0.80.1"
},

┌  Welcome to Rock!
│

│
◇  What platforms do you want to start with?
│  ios, android
│
◇  Which bundler do you want to use?
│  metro
│
◇  Select plugins:
│  brownfield-ios, brownfield-android
│
◇  Which remote cache provider do you want to use?
│  None
│
◇  Do you want to install dependencies?
│  Yes
│
◇  Applied template, platforms and plugins
│
◇  Installed dependencies with pnpm
│
◇  Next steps ──────────────────────────────────────╮
│                                                   │
│  cd mobileApp                                     │
│  pnpm run start      starts dev server            │
│  pnpm run ios        builds and runs iOS app      │
│  pnpm run android    builds and runs Android app  │
│                                 

Description

Build and Run failed on PNPM fresh repo with brownfield plugins, complete new repo
pnpm run start-> works

pnpm run ios ->

** BUILD FAILED **


The following build commands failed:
        SwiftVerifyEmittedModuleInterface normal x86_64 Verifying\ emitted\ module\ interface\ ReactBrownfield.swiftinterface /Users/s/Library/Developer/Xcode/DerivedData/Testapp-daxkojygorvdddegczuhegjzvdzo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactBrownfield.build/Objects-normal/x86_64/ReactBrownfield.swiftinterface (in target 'ReactBrownfield' from project 'Pods')
        SwiftVerifyEmittedModuleInterface normal x86_64 Verifying\ emitted\ module\ interface\ ReactBrownfield.private.swiftinterface /Users/s/Library/Developer/Xcode/DerivedData/Testapp-daxkojygorvdddegczuhegjzvdzo/Build/Intermediates.noindex/Pods.build/Debug-iphonesimulator/ReactBrownfield.build/Objects-normal/x86_64/ReactBrownfield.private.swiftinterface (in target 'ReactBrownfield' from project 'Pods')
        Building workspace Testapp with scheme Testapp and configuration Debug
(3 failures)

│
■  Running xcodebuild failed. See error details above.

pnpm run android ->

Build Settings:
│  App ID    com.testapp
│  Variant   debug
│  Tasks     installDebug
│
◇  Failed to build the app [1s]
│
■  * Where:
│  Settings file '/Users/s/testapp/android/settings.gradle' line: 2
│  
│  * What went wrong:
│  Error resolving plugin [id: 'com.facebook.react.settings']
│  > Included build '/Users/s/testapp/node_modules/@react-native/gradle-plugin' does not exist.
│
■  Failed to build the app. See the error above for details from Gradle.
 ELIFECYCLE  Command failed with exit code 1.

Android issue is #352 (comment)

Reproducible Demo

followed instructions for PNPM as per https://rnef.vercel.app/docs/getting-started

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions