Installation
Check the requirements first. Releases before 1.0 can break the API in a minor version, so allow patch updates only.
Swift Package Manager
In Xcode, choose File → Add Package Dependencies.
Enter
https://github.com/January-ai/january-sdk-ios.git.Set Dependency Rule to Up to Next Minor Version from
0.3.2.Add the
Januaryproduct to your app target.
In a Package.swift manifest:
dependencies: [
.package(url: "https://github.com/January-ai/january-sdk-ios.git", .upToNextMinor(from: "0.3.2")),
],
targets: [
.target(name: "YourApp", dependencies: [
.product(name: "January", package: "january-sdk-ios"),
]),
]CocoaPods
Add the January pod to your Podfile:
Then run pod install --repo-update and open the generated .xcworkspace.
Import the SDK
Next: Backend token endpoint.
Last updated
Was this helpful?