Swiftpack.co -  castle/castle-ios as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
iOS library for Castle
.package(url: "https://github.com/castle/castle-ios.git", from: "2.1.1")

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", "2.1.1"


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. You can still continue using version 1.0.10 or add the dependency using CocoaPods or Swift Package Manager.

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

github "castle/castle-ios" "1.0.10"

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: "2.1.1"))


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: 3
Last commit: 7 weeks ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Release Notes

Release v2.1.1
7 weeks ago
  • Fix: #64 Remove duplicate bcsymbolfiles, update import in umbrella header.
  • Fix: #63 Expose CastleRequestTokenHeaderName const.

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