Swiftpack.co -  NordicSemiconductor/IOS-nRF-Mesh-Library as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
The Bluetooth Mesh Provisioner and Configurator library.
.package(url: "https://github.com/NordicSemiconductor/IOS-nRF-Mesh-Library.git", from: "3.1.4")

nRF Mesh for iOS

GitHub license Version Carthage compatible SwiftPM Compatible


The nRF Mesh Provision library allows to provision and send messages to Bluetooth Mesh devices.

Bluetooth Mesh specification may be found here: https://www.bluetooth.com/specifications/mesh-specifications/

The library is compatible with version 1.0.1 of the Bluetooth Mesh Profile Specification.

This is the second version of the nRF Mesh Provision library for iOS. All features are tested against nRF Mesh SDK and Zephyr based mesh devices.

The version 1.x and 2.x of this library are no longer maintained. Please migrate to 3.x to get new features and bug fixes. For changes and migration details see #295.

Sample app

The sample application demonstrates how to use the library. It may also be used to configure your Mesh network. Use pod try to install and set up the sample app when using CocoaPods. The app and the library are released under BSD-3 license. Feel free to modify them as you want.

The app is available on App Store: https://apps.apple.com/us/app/nrf-mesh/id1380726771

Supported features

  1. Provisioning with all features that available in Bluetooth Mesh Profile 1.0.1, including OOB Public Key and all types of OOB.
  2. Managing Provisioners, Network Keys, Application Keys, resetting network, etc.
  3. All network layers are working.
  4. Parsing Secure Network beacons.
  5. Adding, removing and refreshing Network and Application Keys to Nodes.
  6. Binging and unbinding Application Keys to Models.
  7. Setting and clearing publication to a Model.
  8. Setting and removing subscriptions to a Model.
  9. Groups, including those with Virtual Addresses.
  10. UI for controlling groups (Generic OnOff and Generic Level (delta) are supported).
  11. Handling Configuration Server messages sent by other Provisioner.
  12. Generic OnOff and Vendor model have dedicated controls in sample app.
  13. Proxy Filter.
  14. IV Index update (handling updates received in Secure Network beacons).
  15. Heartbeats (both as client and server).
  16. Scenes (both as client and server).
  17. Partial export (allows to export only part of the network, for example for a Guest).
  18. Key Refresh Procedure (using ConfigKeyRefreshPhaseSet messages, not Secure Network beacon)

NOT (yet) supported features

  1. Many SIG defined models, except from supported ones.
  2. IV Index update (initiation).
  3. Health server messages.
  4. Remote Provisioning.


The documentation for this library may be found here.


  • Xcode 12 or newer.
  • An iOS 10.0 or newer device with BLE capabilities.


  • nrf52832 or nrf52840 based Development Kit(s) to test the sample firmwares on.


Any feedback is more than welcome. Please, test the app, test the library and check out the API.


BSD 3-Clause License


Stars: 202
Last commit: 4 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.

Submit a free job ad (while I'm testing this). The analytics numbers for this website are here.

Release Notes

11 weeks ago

This version fixes the following issues:

  • Bug fix: Possible crash when IV Index was 0 and IVI 1 (#358)
  • Lots of selfs weakened (#356)
  • Importing Android 2.1 on iOS 3.x (#348) fixed with Allowing groups to be nil when importing (#357)

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