Swiftpack.co - GuardianFirewall/GuardianConnect as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by GuardianFirewall.
GuardianFirewall/GuardianConnect 1.8.5-dev-1
API / VPN Framework for Guardian Firewall iOS application
⭐️ 7
🕓 Yesterday
iOS macOS
.package(url: "https://github.com/GuardianFirewall/GuardianConnect.git", from: "1.8.5-dev-1")


A complete framework for iOS and macOS applications written in Objective-C or Swift to integrate with the Guardian Connect API and establish VPN connections to the Guardian Firewall infrastructure. All lower level components are exposed but the use of high level APIs in GRDVPNHelper are recommended.
This framework includes everything to establish an IKEv2 connection through the builtin IKEv2 daemon on iOS & macOS, as well as a WireGuard connection through an external library provided by Guardian.
(The WireGuard library is not required to build this framework locally)

For more information and a direct contact visit https://guardianapp.com/company/partners/


Pre-built frameworks will be made available with significant advances through the releases feature here on Github and new updates can either be manually downloaded or automated through SwiftPM.

¡We strongly encourage everybody to explicitly pin specific version numbers if used with SwiftPM!

The framework is considered stable and breaking changes will be handled through new code paths to preserve existing stable ones. Bug fixes or OS API changes may change the behavior of the framework unintentionally.

Manual build

The framework can also easily be built locally and does not depend on any other external downloads. A combination of a complete download of this repo as well as the Xcode toolchain should will give you a locally built .xcframework file with slices for iOS & macOS


To build an xcframework for iOS or macOS cd into the root folder and run the following command



Another way to execute the shell script to build the .xcframework locally is to use the XCFramework build target in Xcode. Once selected use the Build feature in Xcode to generate the framework.

Both build strategies will open a new Finder window once the framework was successfully built and highlight the newly built GuardianConnect.xcframework file. This can now be placed into Xcode via drag & drop


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

Release Notes


This is a pre-release build of 1.8.5 and should not be used in shipping production versions

  • Improve restoring user selected regions from NSUserDefaults upon initialization of GRDVPNHelper
  • Improved logging upon failure to store GRDPEToken objects with the [GRDPEToken store] method
  • Added the Connect API environment as a property to GRDPEToken objects
  • Cleanup API request boilerplate code in GRDHousekeepingAPI

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