You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/main/getting-started/environment-setup.md
+19-8Lines changed: 19 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,14 +25,12 @@ With Node installed, you can get started with creating Progressive Web Applicati
25
25
26
26
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.
27
27
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:
29
29
30
30
- Xcode
31
31
- Xcode Command Line Tools
32
-
- Homebrew
33
-
- Cocoapods
34
32
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.
36
34
37
35
### Xcode
38
36
@@ -53,7 +51,18 @@ xcode-select -p
53
51
# /Applications/Xcode.app/Contents/Developer
54
52
```
55
53
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
57
66
58
67
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.
59
68
@@ -69,9 +78,11 @@ Don't just trust us! This is how [brew.sh](https://brew.sh) recommends installin
69
78
70
79
If you do not want to install Homebrew, alternative, but not recommended, instructions can be found below.
71
80
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.
73
84
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
75
86
76
87
```bash
77
88
brew install cocoapods
@@ -84,7 +95,7 @@ pod --version
84
95
# 1.12.1
85
96
```
86
97
87
-
#### Installing CocoaPods without Homebrew
98
+
#####Installing CocoaPods without Homebrew
88
99
89
100
You can install CocoaPods directly with Ruby Gem. To install it, you can run the following command.
0 commit comments