.xcframework bundle, which provides compatibility across different architectures and platforms.
Prerequisites
Ensure you have acquired CDN account credentials, along with the repository URL (this will be communicated via official channels).Step-by-Step Instructions
Step 1: Download and extract .xcframework
Open the CDN link in browser for the latest version and download the UAEKYCFramework.xcframework.zip file and extract it.
Step 2: Open Your Xcode Project
- Launch Xcode.
- Open the project where you want to integrate the
UAEKYCFramework. - Create a Frameworks group if it does not exist by right-clicking in the Project Navigator on your project name.
Step 3. Add the .xcframework to Your Project in Xcode
-
Drag and drop the
.xcframeworkfile into your project’sFrameworksgroup in Project Navigator (on the left-hand side). -
In the dialog that appears:
- Select the appropriate targets where the framework will be used.
- Ensure the “Copy items if needed” checkbox is checked to copy the framework into your project.
Step 4. Link the Framework in Your Target
- Go to your project settings by clicking on the project name in the Project Navigator.
- Select your app target under the Targets section.
- Go to the General tab.
- Scroll down to the Frameworks, Libraries, and Embedded Content section.
- Click the
+button and add your.xcframeworkto the list. - Set the Embed option to Embed & Sign.
Step 5: Add NFC Tag Reading Capability
The SDK uses NFC to read Emirates ID and Passport data. You need to configure the NFC capability and entitlements.5.1 Add NFC Capability
- Go to your project settings by clicking on the project name in the Project Navigator.
- Select your app target under the Targets section.
- Go to the Signing & Capabilities tab.
- Click the
+ Capabilitybutton. - Search for and add Near Field Communication Tag Reading.
5.2 Configure Entitlements
After adding the capability, Xcode will create an entitlements file (or update an existing one). Ensure it contains:5.3 Add Privacy Usage Description
Add the following key to yourInfo.plist to describe why your app needs NFC access:
| Key | Type | Value |
|---|---|---|
NFCReaderUsageDescription | String | A description explaining NFC usage (e.g., “Required to read Emirates ID or Passport”) |
Step 6: Verify the Integration
-
Confirm the
UAEKYCFrameworkmodule is accessible in your project by importing it: - Build your project to ensure the package is correctly integrated.
Troubleshooting
- URL Errors: Verify the repository URL is correct and accessible.
