Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Sherlouk/SwiftProvisioningProfile
Parse iOS mobile provisioning files into Swift models
https://github.com/Sherlouk/SwiftProvisioningProfile
codable provisioning-profiles swift swift-package-manager
Last synced: 3 months ago
JSON representation
Parse iOS mobile provisioning files into Swift models
- Host: GitHub
- URL: https://github.com/Sherlouk/SwiftProvisioningProfile
- Owner: Sherlouk
- License: mit
- Created: 2018-04-10T10:02:17.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2022-06-09T18:02:51.000Z (over 2 years ago)
- Last Synced: 2024-08-08T14:33:46.123Z (3 months ago)
- Topics: codable, provisioning-profiles, swift, swift-package-manager
- Language: Swift
- Homepage:
- Size: 15.6 KB
- Stars: 64
- Watchers: 2
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - SwiftProvisioningProfile - Parse provisioning profiles into Swift models. (Utility / Web View)
- awesome-ios-star - SwiftProvisioningProfile - Parse provisioning profiles into Swift models. (Utility / Web View)
README
# SwiftyProvisioningProfile
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 PackageDescriptionlet 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)
```