Installing the iOS SDK
Compatability
The latest version of the iOS SDK is compatible with the following platforms:
- iOS 13.0+
Installation
Swift Package Manager
You can install the SDK using Swift Package Manager through your Xcode project or by including it in your Package.swift
file.
Add to your Xcode project
To add the package dependency to your Xcode project:
- Go to
File > Swift Packages > Add Package Dependency
- Enter the iOS SDK repository clone URL:
https://github.com/AppFlags/ios-sdk.git
- Enter your preferred version constraints
Add to your Package.swift file
Adding the SDK dependency in your Package.swift file looks like this:
...
dependencies: [
.package(url: "https://github.com/AppFlags/ios-sdk.git", .upToNextMajor("1.0.0")),
],
targets: [
.target(
name: "YOUR_TARGET",
dependencies: ["AppFlags"]
)
],
...