Swiftpack.co - castle/castle-ios as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by castle.
castle/castle-ios 3.0.5
iOS library for Castle
⭐️ 4
🕓 1 week ago
.package(url: "https://github.com/castle/castle-ios.git", from: "3.0.5")

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


  • iOS 9.0+
  • Xcode 9.0+


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


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

pod "Castle", "3.0.5"


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.5"))


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


Please see the Mobile Integration Guide.

Library size

Library size is approximately 74kb and was calculated using the cocoapods-size tool from Google.


Stars: 4
Last commit: 4 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

Release v2.1.11
4 days ago
  • Fix: Add check to determine if the SDK has been configured in NSNotification callbacks.
  • Fix: #97 SwiftPM - disable NSAssert in release builds.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics