Swiftpack.co - GuardianFirewall/GuardianWireGuard as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by GuardianFirewall.
GuardianFirewall/GuardianWireGuard 1.0.0
WireGuard static library used in Guardian Firewall clients
⭐️ 2
🕓 20 weeks ago
iOS macOS
.package(url: "https://github.com/GuardianFirewall/GuardianWireGuard.git", from: "1.0.0")


A thin wrapper around the WireGuard Apple source files in order to compile it into a protable .xcframework format.

This framework is intended to be used alongside GuardianConnect by Guardian partners and provides no stability guarantees in any other scenarios

iOS App Store limitations

This framework is meant to be used by the Network Extension app extension of your application but Apple currently does not allow nested bundles inside apps distributes through the App Store. In order to resolve this problem please add GRDWireGuardKit.xcframework as a dependency both to your main app target in Xcode and set it to Embed & Sign as well as to your app extension target, but set the embedding build rules to Do Not Embed.


In order to use this framework either download and install the latest .xcframework archive from the releases or add https://github.com/GuardianFirewall/GuardianWireGuard as a SPM dependency.

¡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 only depends on the WireGuard sources which are included as a submodule. 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


After a successful build a new Finder window will open and highlight the newly built GRDWireGuardKit.xcframework file. This can now be placed into Xcode via drag & drop


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

Release Notes

20 weeks ago

First public release of GRDWireGuardKit 🎉

  • Publish GRDWireGuardKit properly as a SPM package.
  • Improved the stability of the package
  • Bumped the build number to be SPM compatible

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