Skip to content

Can't install Pods when using pnpm #381

Description

@itajenglish

SDK version: 4.2.1

Environment: Development

Are logs available?

⚠️  Something went wrong running `pod install` in the `ios` directory.
Command `pod install` failed.
└─ Cause: There are multiple dependencies with different sources for `customerio-reactnative` in `Podfile`:

- customerio-reactnative (from `../node_modules/customerio-reactnative`)
- customerio-reactnative/apn (from `../node_modules/.pnpm/customerio-reactnative@4.2.1_react-native@0.74.5_@babel+core@7.26.7_@babel+preset-env@7_06e540787e821bc5aa9d6cc4e047b81d/node_modules/customerio-reactnative`)

pod install --repo-update --ansi exited with non-zero code: 1

Describe the bug
Can't install using pnpm due to dependency issues

To Reproduce

  • Run pnpm add customerio-reactnative@4.2.1
  • Run npx expo prebuild --clean or cd ios && pod install

Expected behavior

  • Should install without issue

Screenshots

Additional context
This works using npm or yarn

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions