Skip to content

Commit 955a39a

Browse files
feat: install Cocoapods by default in all projects (#2602)
1 parent 73d3e12 commit 955a39a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/projects.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,8 @@ Array of strings that will be passed to the `npx react-native run-ios` command w
9595

9696
#### project.ios.automaticPodsInstallation
9797

98+
> Default: `true`
99+
98100
A boolean value to determine if you want to automatically install CocoaPods when running `run-ios` or `build-ios` command when:
99101

100102
- they are not yet installed
@@ -103,7 +105,7 @@ A boolean value to determine if you want to automatically install CocoaPods when
103105

104106
If set to `true`, you can skip running `pod install` manually whenever it's needed.
105107

106-
> Note: Starting from React Native 0.73, CLI's `init` command scaffolds the project with `react-native.config.js` file with this value set to `true` by default. Older projects can opt-in after migrating to 0.73. Please note that if your setup does not follow the standard React Native template, e.g. you are not using Gems to install CocoaPods, this might not work properly for you.
108+
> Note: Starting from React Native 0.73, CLI's `init` command scaffolds the project with `react-native.config.js` file with this value set to `true` by default. Older projects can opt-in after migrating to 0.73. Please note that if your setup does not follow the standard React Native template, e.g. you are not using Gems to install CocoaPods, this might not work properly for you. Starting from React Native 0.79, users shouldn't install CocoaPods manually, but can still opt-out of automatic installation by setting this value to `false`.
107109
108110
### project.ios.assets
109111

packages/cli-config/src/schema.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ export const projectConfig = t
155155
.object({
156156
sourceDir: t.string(),
157157
watchModeCommandParams: t.array().items(t.string()),
158-
automaticPodsInstallation: t.bool().default(false),
158+
automaticPodsInstallation: t.bool().default(true),
159159
assets: t.array().items(t.string()).default([]),
160160
})
161161
.default({}),

0 commit comments

Comments
 (0)