Skip to content

Commit 6304d41

Browse files
docs: Homebrew and CocoaPods as optional for Cap 8 (#464)
1 parent 39b87ba commit 6304d41

File tree

1 file changed

+19
-8
lines changed

1 file changed

+19
-8
lines changed

docs/main/getting-started/environment-setup.md

Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,12 @@ With Node installed, you can get started with creating Progressive Web Applicati
2525

2626
To build iOS apps, you will need **macOS**. While there are solutions like [Ionic Appflow](http://ionicframework.com/appflow) that can be used to perform iOS cloud builds if you don't have a Mac, it is highly recommended to have the tools available to you locally in order to properly test your Capacitor application.
2727

28-
In order to develop iOS applications using Capacitor, you will need four additional dependencies:
28+
In order to develop iOS applications using Capacitor, you will need two additional dependencies:
2929

3030
- Xcode
3131
- Xcode Command Line Tools
32-
- Homebrew
33-
- Cocoapods
3432

35-
Once you've installed the core requirements, as well as Xcode, Xcode Command Line Tools, and Cocoapods, you'll be able to create both iOS applications and PWAs.
33+
Once you've installed the core requirements, as well as Xcode, Xcode Command Line Tools, you'll be able to create both iOS applications and PWAs.
3634

3735
### Xcode
3836

@@ -53,7 +51,18 @@ xcode-select -p
5351
# /Applications/Xcode.app/Contents/Developer
5452
```
5553

56-
### Homebrew
54+
### Optional dependencies
55+
56+
The following dependencies are optional for using Capacitor on iOS.
57+
58+
If you need to use CocoaPods as a dependency manager for native iOS packages, then you should install these two package managers:
59+
60+
- Homebrew
61+
- CocoaPods
62+
63+
We recommend using [Swift Package Manager](https://docs.swift.org/swiftpm/documentation/packagemanagerdocs) (SPM) as the dependency manager for iOS. If you don't need CocoaPods, then you can use SPM and skip the install of those two dependencies.
64+
65+
#### Homebrew
5766

5867
Homebrew is a package manager for macOS packages. You need to install it in order to install CocoaPods for both Intel and Apple Silicon Macs.
5968

@@ -69,9 +78,11 @@ Don't just trust us! This is how [brew.sh](https://brew.sh) recommends installin
6978

7079
If you do not want to install Homebrew, alternative, but not recommended, instructions can be found below.
7180

72-
### CocoaPods
81+
#### CocoaPods
82+
83+
CocoaPods was the default iOS dependency manager in Capacitor 7 and earlier. Since Capacitor 8, the default has been replaced with SPM, but you can still use CocoaPods as an alternative if your project needs it, by passing `--packagemanager CocoaPods` to `npx cap add ios` command.
7384

74-
Cocoapods is an iOS dependency manager that Capacitor uses to install and manage native dependencies for your iOS project. You can install [CocoaPods](https://cocoapods.org/) by running the following command in your terminal
85+
You can install [CocoaPods](https://cocoapods.org/) by running the following command in your terminal
7586

7687
```bash
7788
brew install cocoapods
@@ -84,7 +95,7 @@ pod --version
8495
# 1.12.1
8596
```
8697

87-
#### Installing CocoaPods without Homebrew
98+
##### Installing CocoaPods without Homebrew
8899

89100
You can install CocoaPods directly with Ruby Gem. To install it, you can run the following command.
90101
```

0 commit comments

Comments
 (0)