Get started (iOS SDK)
Prerequisites
To use our iOS SDK for Swift, you need:
- Apple Developer tools
- An active UI key from the Embedder Portal
- Weavr iOS SDK for Swift
Latest version
Compatibility
- Minimum iOS: 15.1
- Swift toolchain: 5.9 or later
- Xcode: 16 minimum, 26 or later recommended
- The device must support push notifications and biometric authentication
Install Xcode
Install Apple's Xcode IDE from the Mac App Store. See Xcode resources on Apple's developer portal for more information.
Verify your Swift version:
$ swift --version
swift-driver version: 1.87.1 Apple Swift version 5.9 (swiftlang-5.9.0.128.108 clang-1500.0.40.1) Target: x86_64-apple-macosx14.0
Install
You can install our iOS SDK via Swift Package Manager (recommended) or CocoaPods.
Swift Package Manager
To install our Secure Components iOS SDK using Swift Package Manager (SPM):
- Open your Xcode project.
- Navigate to File > Add Packages...
- In the search bar, enter the following URL:
https://github.com/weavr-io/secure-components-ios.git
- Select the version you wish to use. We adhere to Semantic versioning and so recommend using the
Up to next major versiondependency rule. - Click Add Package to integrate the SDK into your project, and select the target where you want to add the SDK.
CocoaPods
CocoaPods is a dependency management service for Objective-C and Swift Projects. For more information about installation and usage, visit the CocoaPods guides. To integrate Weavr iOS SDK into your Xcode project, specify in your Podfile.
Podfile
source 'https://cdn.cocoapods.org/'
source 'https://github.com/sumsub/Specs.git'
use_frameworks! : linkage => :dynamic # Required by Approov
pod 'ApproovURLSession', '~> 3.3.3' # Approov for secure mobile API protection
pod 'WeavrComponents', '~> 3.0' # Weavr SDK for biometric authentication and UI components - check the latest version on GitHub
pod 'IdensicMobileSDK', '~> 1.41.0' # Sumsub SDK for identity verification
pod 'Firebase/Analytics' # Firebase analytics
pod 'Firebase/Core' # Core Firebase functionality
pod 'Firebase/Messaging' # Firebase Cloud Messaging for push notifications
pod 'FirebaseAppCheck' # Firebase App Check for device integrity verification
The minimum supported iOS deployment target is iOS 15.1 - ensure your Podfile includes platform :ios, '15.1' or higher.
If you have any issues with pod:
- Check and update your pod version.
- Add the following pod hook in your podfile:
Podfile
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
end
end
end