Skip to content

Commit 16b997e

Browse files
authored
Recommend SPM installation option first
1 parent 768ac4a commit 16b997e

File tree

1 file changed

+5
-31
lines changed

1 file changed

+5
-31
lines changed

xxPROJECTxNAMExx/README.md

+5-31
Original file line numberDiff line numberDiff line change
@@ -37,47 +37,21 @@ To run the example project, clone this repo, and open iOS Example.xcworkspace fr
3737

3838
## Installation
3939

40-
### CocoaPods
41-
42-
[CocoaPods](http://cocoapods.org) is a dependency manager for Cocoa projects. You can install it with the following command:
43-
44-
```bash
45-
$ gem install cocoapods
46-
```
47-
48-
To integrate xxPROJECTxNAMExx into your Xcode project using CocoaPods, specify it in your `Podfile`:
49-
50-
```ruby
51-
use_frameworks!
52-
53-
pod 'xxPROJECTxNAMExx'
54-
```
40+
Add this to your project using Swift Package Manager. In Xcode that is simply: File > Swift Packages > Add Package Dependency... and you're done. Alternative installations options are shown below for legacy projects.
5541

56-
Then, run the following command:
57-
58-
```bash
59-
$ pod install
60-
```
42+
### CocoaPods
6143

44+
If you are already using [CocoaPods](http://cocoapods.org), just add 'xxPROJECTxNAMExx' to your `Podfile` then run `pod install`.
6245

6346
### Carthage
6447

65-
[Carthage](https://github.com/Carthage/Carthage) is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
66-
67-
You can install Carthage with [Homebrew](http://brew.sh/) using the following command:
68-
69-
```bash
70-
$ brew update
71-
$ brew install carthage
72-
```
73-
74-
To integrate xxPROJECTxNAMExx into your Xcode project using Carthage, specify it in your `Cartfile`:
48+
If you are already using [Carthage](https://github.com/Carthage/Carthage), just add to your `Cartfile`:
7549

7650
```ogdl
7751
github "__GITHUB_USERNAME__/xxPROJECTxNAMExx" ~> 0.1
7852
```
7953

80-
Run `carthage update` to build the framework and drag the built `xxPROJECTxNAMExx`.framework into your Xcode project.
54+
Then run `carthage update` to build the framework and drag the built `xxPROJECTxNAMExx`.framework into your Xcode project.
8155

8256

8357
## Author

0 commit comments

Comments
 (0)