Skip to content

Commit 48470f4

Browse files
authored
docs: Update README with SPM
1 parent eb69294 commit 48470f4

File tree

1 file changed

+15
-16
lines changed

1 file changed

+15
-16
lines changed

README.md

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[![auto-release](https://img.shields.io/badge/%F0%9F%9A%80-auto--release-9e34eb.svg)](https://github.com/parse-community/Parse-SDK-iOS-OSX/releases)
1313

1414
![Platforms](http://img.shields.io/cocoapods/p/Parse.svg?style=flat)
15-
[![Carthage](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/carthage/carthage)
15+
![SPM](https://img.shields.io/badge/Swift_Package_Manager-compatible-green?style=flat)
1616
[![Pod](https://img.shields.io/cocoapods/v/Parse.svg)](https://cocoapods.org/pods/Parse)
1717

1818
[![Backers on Open Collective](https://opencollective.com/parse-server/backers/badge.svg)][open-collective-link]
@@ -29,8 +29,7 @@ A library that gives you access to the powerful Parse Server backend from your i
2929

3030
- [Getting Started](#getting-started)
3131
- [Other Installation Options](#other-installation-options)
32-
- [CocoaPods](#cocoapods)
33-
- [Carthage](#carthage)
32+
- [Swift Package Manager](#swift-package-manager)
3433
- [Compiling for yourself](#compiling-for-yourself)
3534
- [Using Parse as a sub-project](#using-parse-as-a-sub-project)
3635
- [How Do I Contribute?](#how-do-i-contribute)
@@ -45,11 +44,21 @@ Notice the API docs aren't totally up to date when it comes to latest Swift sign
4544

4645
### Other Installation Options
4746

47+
#### Swift Package Manager
48+
49+
1. Open Xcode > File > Add packages...
50+
2. Add the following package URL:
51+
```
52+
https://github.com/parse-community/Parse-SDK-iOS-OSX
53+
```
54+
3. Add package
55+
3. Choose the submodules to add
56+
4857
#### [CocoaPods](https://cocoapods.org)
4958

5059
Add the following line to your Podfile:
5160
```ruby
52-
pod 'Parse'
61+
pod 'ParseCore'
5362
```
5463

5564
Run `pod install`, and you should now have the latest parse release.
@@ -66,23 +75,13 @@ pod 'Parse/UI'
6675
Note that in this case, the Parse framework will contain all headers and classes, so you just have to use:
6776

6877
```swift
69-
import Parse
78+
import ParseCore
7079
```
7180

7281
```objc
73-
@import Parse;
82+
@import ParseCore;
7483
```
7584

76-
#### [Carthage](https://github.com/carthage/carthage)
77-
78-
Add the following line to your Cartfile:
79-
```
80-
github "parse-community/Parse-SDK-iOS-OSX"
81-
```
82-
Run `carthage update`, and you should now have the latest version of Parse SDK in your Carthage folder.
83-
84-
This will also compile the ParseTwitterUtils, ParseFacebookUtilsV4 as well as ParseUI frameworks.
85-
8685
#### Compiling for yourself
8786

8887
If you want to manually compile the SDK, clone it locally, and run the following commands in the root directory of the repository:

0 commit comments

Comments
 (0)