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.7-dev-2
API / VPN Framework for Guardian Firewall iOS application
⭐️ 8
🕓 2 weeks ago
iOS macOS
.package(url: "https://github.com/GuardianFirewall/GuardianConnect.git", from: "1.8.7-dev-2")


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: 8
Last commit: 2 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Release Notes

2 weeks ago

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

  • Added the ability to change the Connect API hostname for (almost) all requests
  • Added region precision variable to allow integrating apps to choose on how to expose region routing. Possible options are default, cities, countries & city-by-country
  • Latitude and longitude is now exposed through the next API endpoints for all regions regardless of the selected region precision

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