CodePush SDK with Swift Package Manager support

Starting with version 10.7.0, Bitrise CodePush SDK supports Swift Package Manager (SPM). CocoaPods remains supported for the foreseeable future.

Why React Native is moving away from CocoaPods

CocoaPods isn’t going away, but its Specs repo becomes read-only at the end of 2026. The React Native ecosystem relies heavily on CocoaPods to package and integrate the iOS native code in libraries. This community RFC covers the move to SPM in detail.

Replacing CocoaPods in your project

React Native 0.87 is the first version with experimental SPM support, and 0.88 improves it further. On Expo, SDK 58 is the first release with initial SPM support.

  1. Upgrade React Native.
  2. Run npx react-native spm to list the dependencies that don’t support SPM yet. Bump those to their latest versions. If a library still lacks SPM support, check its issue tracker and subscribe to updates.
  3. Either wait for your dependencies to catch up, or add SPM packaging yourself: npx react-native spm scaffold generates it from each remaining library’s podspec.
  4. Once every library supports SPM, run npx react-native spm add --deintegrate --yes from the ios folder to migrate.
  5. Delete the leftover CocoaPods and Ruby files: Podfile, Podfile.lock, the .xcworkspace, Gemfile and .bundle.