-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
James Sherlock
committed
Apr 10, 2018
1 parent
43fca25
commit 8ae2b45
Showing
1 changed file
with
34 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,36 @@ | ||
# SwiftyProvisioningProfile | ||
|
||
A description of this package. | ||
This library provides a way to decode a `.mobileprovision` file into a Swift model. | ||
|
||
#### Installation | ||
|
||
The recommended installation is via Swift Package Manager, you'll want to update your `Package.swift` with a new dependency: | ||
|
||
```swift | ||
import PackageDescription | ||
|
||
let package = Package( | ||
name: "YourAwesomeSoftware", | ||
dependencies: [ | ||
.package(url: "https://github.com/Sherlouk/SwiftProvisioningProfile.git", from: "1.0.0") | ||
] | ||
) | ||
``` | ||
|
||
There are open issues to handle CocoaPods and Carthage installation, if people want it then I'm willing to support it! | ||
|
||
#### Usage | ||
|
||
```swift | ||
// 1. Import the library | ||
import SwiftyProvisioningProfile | ||
|
||
// 2. Load your provisioning profile's file data | ||
let profileData = try Data(contentsOf: ...) | ||
|
||
// 3. Parse it | ||
let profile = try ProvisioningProfile.parse(from: profileData) | ||
|
||
// 4. Use it | ||
print(profile.uuid) | ||
``` |