Installation
Swift Package Manager
The Swift Package Manager is a tool for managing the distribution of Swift code. It’s integrated with the Swift build system to automate the process of downloading, compiling, and linking dependencies.
Follow the Apple documentation on how to add a package to your project.
Paste the following URL,
https://github.com/bridgefy/sdk-ios, into the Package Dependencies search bar.Use the version-based Package Requirements, and set the value to the latest version of the Bridgefy SDK.
Cocoapods
CocoaPods is a dependency manager that lets you add third-party frameworks and libraries to projects. For installation instructions, see Install CocoaPods.
Add the Bridgefy SDK to your Podfile and install it in your project as follows:
Add pod 'BridgefySDK' to the do block:
platform :ios, '13.0' target 'SDK test' do use_frameworks! pod 'BridgefySDK' endSave the Podfile.
Run the following command in the Terminal:
$ pod install
Manually
Download the
BridgefySDK.frameworkfrom this repository.Drag the
BridgefySDK.frameworkfolder to the top of your project's hierarchy in Xcode.

Select
Copy items if neededfrom the dialog window after releasing the folder into your project.

In the general section of your project's target, go to the section
Frameworks, Libraries and Embedded Content, look for theBridgefySDK.framework, and in theEmbedcolumn, select the option Embed & Sign

5. Import the Bridgefy SDK using the following code:
import BridgefySDKPermissions
The BridgefySDK requires permission to use the Bluetooth antenna of the devices where it's installed; to achieve this, you have to add a couple of entries on the Info.plist of your project. The entries are depicted in the following image:

Last updated
Was this helpful?
