Getting started
Add the HUMAN SDK library to your project
To get started with the HUMAN SDK, you need to first add the library to your project.
Add the SDK to your project
Swift Package Manager
CocoaPods
Add the XCFramework file manually
Add the package from the human-security-ios-sdk-spm repository.
human-security-ios-sdk-spm is a specialized repository that contains a pointer to the precompiled XCFramework included in the latest HUMAN SDK release, allowing for quicker downloads. We recommend using this repository rather than the main human-security-ios-sdk repository.
Handle multiple Application IDs
If you have multiple HUMAN Applications and Application IDs, you can use the following to support all of them within the SDK:
- Call the
HumanSecurity/start(appIds:policy:)function and provide all your Application IDs. - Pass the relevant ID to each function that requires the
appIdparameter. For single AppID apps, the value may benilornull.
Finish your integration
Next, follow the respective guides based on your environment and requirements:
Native & hybrid apps
Other platforms
Verify & test the integration
Use our guide to verify and test the SDK integration in your app.