SDKsSwift SDK
Installation
Add the OwlMetry Swift SDK to your project via Swift Package Manager.
The OwlMetry Swift SDK is distributed as a Swift Package. It has zero external dependencies.
Xcode (recommended)
- Open your project in Xcode.
- Go to File > Add Package Dependencies.
- Enter the repository URL:
https://github.com/Jasonvdb/owlmetry.git - Set the dependency rule to Branch and enter
main. - Click Add Package.
- Select the OwlMetry library and add it to your app target.
Package.swift
If you manage dependencies through a Package.swift file, add OwlMetry to the dependencies array:
dependencies: [
.package(url: "https://github.com/Jasonvdb/owlmetry.git", branch: "main")
]Then add the product to your target's dependencies:
.target(
name: "YourApp",
dependencies: [
.product(name: "OwlMetry", package: "owlmetry")
]
)Verify the Installation
Build your project and confirm the import compiles without errors:
import OwlMetryIf you see a "No such module 'OwlMetry'" error in your editor, this is a known SourceKit issue -- the error should resolve when you perform an actual build with Xcode or xcodebuild.
Requirements
| Platform | Minimum Version |
|---|---|
| iOS | 16.0 |
| iPadOS | 16.0 |
| macOS | 13.0 |
Next Steps
Once the package is added and your project builds, proceed to Configuration to initialize the SDK.
