Install the SDK
Use Swift Package Manager to add ClerkKit (core API) and ClerkKitUI (prebuilt SwiftUI views) to your app target.
Install via Xcode
- In Xcode, open the Package Dependencies tab and click the + button.
- Search for
https://github.com/clerk/clerk-ios. - Select the
Clerkpackage in the results list. - Set the dependency rule to Up to Next Major Version.
- Make sure your app target is selected in Add to Project, then select Add Package.
- In Choose Package Products, select
ClerkKitandClerkKitUI, then select Add Package.
dependencies: [
.package(url: "https://github.com/clerk/clerk-ios", from: "1.0.0")
]
targets: [
.target(
name: "YourApp",
dependencies: [
.product(name: "ClerkKit", package: "Clerk"),
.product(name: "ClerkKitUI", package: "Clerk")
]
)
]Configure the SDK
Configure the SDK with your publishable key and Clerk options.
iOS Quickstart
Follow the end-to-end setup guide for a Clerk-powered iOS app.
Feedback
Last updated on
Edit on GitHub