Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.68 KB

File metadata and controls

43 lines (26 loc) · 1.68 KB

iOS SDK for Castle

Castle adds real-time monitoring of your authentication stack, instantly notifying you and your users on potential account hijacks.

License CircleCI codecov

NOTE: Version 4.0.0 has small breaking changes compared to previous 3.x.x. Versions. The import statement changed to CastleSDK. configure is now a throwable, and createRequestToken returns nil before the sdk is initialized.

Requirements

  • iOS 13.0+

Compiled with

  • Xcode 26.2 (swiftlang-6.2.3.3.20 clang-1700.6.3.2)

Installation

Castle is available through Switft Package Manager. Version < 4.0.0 are also avilable through CocoaPods and Carthage.

Swift Package Manager

Add Castle as a dependency by adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/castle/castle-ios.git", .upToNextMajor(from: "4.1.0"))
]

Manually

Download the zip file from the github release, unzip and drag Castle.xcframework to the Frameworks, Libraries and Embedded Content section of the target. They should all be set to Embed & Sign

Usage

Please see the Mobile Integration Guide.

Library size

Library size is approximately 800kb.