-
Notifications
You must be signed in to change notification settings - Fork 4
Installation
Andrew Wagner edited this page Sep 11, 2019
·
6 revisions
CocoaPods is a dependency manager for Swift and Objective-C Cocoa projects. You can install it with the following command:
$ gem install cocoapodsNavigate to the project directory and create Podfile with the following command:
$ pod installInside of your Podfile, specify the XMLCoder pod:
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'
target 'YourApp' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!
# Pods for Test
pod 'Decree', '~> 4.2.0'
endThen, run the following command:
$ pod installOpen the the YourApp.xcworkspace file that was created. This should be the
file you use everyday to create your app, instead of the YourApp.xcodeproj
file.
- First, run the following terminal commands
git submodule add https://github.com/drewag/Decree.git external/Decree
cd external/Decree
swift package update- Drag 'Decree.xcodeproj' into your project
- Select your apps project and the “General” tab
- Scroll down to Embedded Binaries and click the plus button
- Select “Decree.framework” and repeat for “CryptoSwift.framework” and “XMLCoder.framework”
- Add
import Decreeto the top of any file you would like to use this library in
import PackageDescription
let package = Package(
name: "MyPackage",
dependencies: [
.package(url: "https://github.com/drewag/Decree.git", from: "4.2.0"),
]
)