https://github.com/castle/castle-ios
iOS library for Castle
https://github.com/castle/castle-ios
Last synced: 4 months ago
JSON representation
iOS library for Castle
- Host: GitHub
- URL: https://github.com/castle/castle-ios
- Owner: castle
- License: mit
- Created: 2017-05-18T18:29:39.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2025-03-24T14:38:27.000Z (about 1 year ago)
- Last Synced: 2025-07-12T08:23:35.304Z (11 months ago)
- Language: Objective-C
- Homepage: https://castle.io
- Size: 57.3 MB
- Stars: 7
- Watchers: 16
- Forks: 4
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# iOS SDK for Castle
**[Castle](https://castle.io) adds real-time monitoring of your authentication stack, instantly notifying you and your users on potential account hijacks.**
[](https://img.shields.io/cocoapods/v/Castle.svg)
[](https://github.com/Carthage/Carthage)
[](http://cocoapods.org/pods/Castle)
[](https://circleci.com/gh/castle/castle-ios)
[](https://codecov.io/gh/castle/castle-ios)
## Requirements
- iOS 12.0+
- Xcode 10.0+
## Installation
Castle is available through [CocoaPods](https://cocoapods.org), [Carthage](https://github.com/Carthage/Carthage) and [Switft Package Manager](https://swift.org/package-manager/).
### CocoaPods
Add Castle as a dependency by including it in your `Podfile`.
```
pod "Castle", "3.2.0"
```
### 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.2.0"))
]
```
### 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](https://docs.castle.io/docs/sdk-mobile).
## Library size
Library size is approximately **74kb** and was calculated using the [cocoapods-size](https://github.com/google/cocoapods-size) tool from Google.