diff --git a/packages/cli/src/actions/packagers.ts b/packages/cli/src/actions/packagers.ts index c338309182..9ee5150786 100644 --- a/packages/cli/src/actions/packagers.ts +++ b/packages/cli/src/actions/packagers.ts @@ -98,7 +98,7 @@ export default defineAction(async (): Promise => { try { for await (const line of execa({ cwd: path.project.resolve('ios'), - })`pod install`) { + })(isCI ? 'bundle exec pod install' : 'pod install')) { logger.debug(line); } diff --git a/packages/cli/templates/react-native-0.72/addons/ios/Gemfile b/packages/cli/templates/react-native-0.72/addons/ios/Gemfile index d77e6e13a3..b2f1d6d7da 100644 --- a/packages/cli/templates/react-native-0.72/addons/ios/Gemfile +++ b/packages/cli/templates/react-native-0.72/addons/ios/Gemfile @@ -1,6 +1,6 @@ source "https://rubygems.org" -# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper -# bound in the template on Cocoapods with next React Native release. -gem 'cocoapods', '>= 1.13', '< 1.15' +# Cocoapods 1.16 requires xcodeproj 1.26.0, which is not compatible with React Native due to a bug. +gem 'cocoapods', '>= 1.13', '< 1.16' gem 'activesupport', '>= 6.1.7.5', '< 7.1.0' +gem 'xcodeproj', '< 1.26.0' diff --git a/packages/cli/templates/react-native-0.73/addons/ios/Gemfile b/packages/cli/templates/react-native-0.73/addons/ios/Gemfile index d77e6e13a3..b2f1d6d7da 100644 --- a/packages/cli/templates/react-native-0.73/addons/ios/Gemfile +++ b/packages/cli/templates/react-native-0.73/addons/ios/Gemfile @@ -1,6 +1,6 @@ source "https://rubygems.org" -# Cocoapods 1.15 introduced a bug which break the build. We will remove the upper -# bound in the template on Cocoapods with next React Native release. -gem 'cocoapods', '>= 1.13', '< 1.15' +# Cocoapods 1.16 requires xcodeproj 1.26.0, which is not compatible with React Native due to a bug. +gem 'cocoapods', '>= 1.13', '< 1.16' gem 'activesupport', '>= 6.1.7.5', '< 7.1.0' +gem 'xcodeproj', '< 1.26.0'