This guide is for iOS only. See Gradle (Android).
Manual XCFramework Integration
Use this method when you distribute NCKit through an internal artifact registry (Artifactory, Nexus, Sonatype), an MDM system, or any scenario where SPM/CocoaPods can't access the GitHub repository.
Downloadโ
Get NCKit.xcframework.zip from GitHub Releases.
Verify the download integrity with the published SHA-256 checksum:
shasum -a 256 NCKit.xcframework.zip
# Compare with checksum in release notes
Integration Stepsโ
-
Unzip the archive:
Shellunzip NCKit.xcframework.zip -
Drag
NCKit.xcframeworkinto your Xcode project navigator (under your project root, not inside a target) -
In the Add to targets dialog, check your app target
-
In your target's General โ Frameworks, Libraries, and Embedded Content:
- Confirm
NCKit.xcframeworkappears - Set it to Embed & Sign
- Confirm
-
Verify linked frameworks in Build Phases โ Link Binary with Libraries:
AVFoundation.frameworkAccelerate.framework
-
Build and run on a device or simulator (arm64 / x86_64 with NCKit 1.2.1+)
Simulator architectures (1.2.1+)โ
The XCFramework includes ios-arm64_x86_64-simulator for Apple Silicon and Intel Mac simulators. See Requirements.
Exclude Intel Simulator (NCKit < 1.2.1 only)โ
If you cannot upgrade past 1.2.0, exclude x86_64 for the simulator SDK:
EXCLUDED_ARCHS[sdk=iphonesimulator*] = x86_64
Version Trackingโ
When updating NCKit manually:
- Remove the old
NCKit.xcframeworkfrom your project - Drag in the new version
- Clean derived data: Product โ Clean Build Folder
- Rebuild
Checksum Verification (SPM-style)โ
swift package compute-checksum NCKit.xcframework.zip
.binaryTarget(
name: "NCKit",
url: "https://your-artifact-registry.com/NCKit/1.0.1/NCKit.xcframework.zip",
checksum: "PASTE_CHECKSUM_HERE"
)