Castle SDK for iOS


License
MIT
Install
pod try Castle

Documentation

iOS SDK for Castle

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

CocoaPods Compatible Carthage Compatible License CircleCI codecov

Requirements

  • iOS 9.0+
  • Xcode 9.0+

Installation

Castle is available through CocoaPods, Carthage and Switft Package Manager.

CocoaPods

Add Castle as a dependency by including it in your Podfile.

pod "Castle", "3.0.9"

Carthage

We have started to include internal dependencies (as xcframeworks) that Carthage currently doesn't support. Therefore we are (temporarily) not supporting Carthage until they add support for adding xcframework dependencies. For now we recommend that you use one of the other installation options.

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: "3.0.9"))
]

Manually

Download the zip file from the github release, unzip and drag GeoZip.xcframework, Highwind.xcframework and 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 74kb and was calculated using the cocoapods-size tool from Google.