Installation
NCKit supports three integration methods. Swift Package Manager is recommended for new projects.
Swift Package Managerβ
Via Xcode (Recommended)β
- Open your project in Xcode
- Go to File β Add Package Dependenciesβ¦
- Enter the repository URL:
Code
https://github.com/5Exceptions-Mobile-Team/NCKit.git - Select Exact Version
1.2.1(recommended) - Click Add Package
- In your target's Frameworks, Libraries, and Embedded Content β confirm NCKit is set to Embed & Sign
Via Package.swiftβ
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "YourApp",
platforms: [.iOS(.v15)],
dependencies: [
.package(
url: "https://github.com/5Exceptions-Mobile-Team/NCKit.git",
exact: "1.2.1"
)
],
targets: [
.target(
name: "YourApp",
dependencies: ["NCKit"]
)
]
)
Local Development Pathβ
If you have NCKit checked out locally alongside your project:
dependencies: [
.package(path: "../NCKit-iOS")
]
CocoaPodsβ
Add to your Podfile:
platform :ios, '15.0'
use_frameworks!
target 'YourApp' do
pod 'NCKit',
:git => 'https://github.com/5Exceptions-Mobile-Team/NCKit.git',
:tag => '1.2.1'
end
Then install:
pod install
open YourApp.xcworkspace
Local Developmentβ
pod 'NCKit', :path => '../NCKit-iOS'
Manual β XCFrameworkβ
Use this method when you need to distribute NCKit as part of an internal artifact registry (Artifactory, Nexus, etc.).
Stepsβ
-
Download
NCKit.xcframework.zipfrom GitHub Releases -
Unzip and drag
NCKit.xcframeworkinto your Xcode project -
In your target settings β General β Frameworks, Libraries, and Embedded Content:
- Set
NCKit.xcframeworkto Embed & Sign
- Set
-
Verify linked frameworks in Build Phases β Link Binary with Libraries:
AVFoundation.frameworkAccelerate.framework
-
Import and build:
Swiftimport NCKit
Post-Installation Checklist (iOS)β
- App iOS Deployment Target is 15.0 or higher
-
import NCKitcompiles without errors - NCKit appears under Frameworks, Libraries, and Embedded Content as Embed & Sign
- Build succeeds for iOS device target (
arm64) - Build succeeds for iOS Simulator (
arm64on Apple Silicon,x86_64on Intel Mac with 1.2.1+)
1.2.1+ ships ios-arm64_x86_64-simulator for both Apple Silicon and Intel Mac simulators. See Requirements.
NCKit for Android is the Maven module com.5exceptions:nckit:1.2.0. The sample app declares it in the Gradle version catalog and applies it with implementation(libs.nckit).
See the full guide: Gradle (Android).
Quick setupβ
1. Version catalog β gradle/libs.versions.toml, the same entries as the sample:
[versions]
nckit = "1.2.0"
[libraries]
nckit = { module = "com.5exceptions:nckit", version.ref = "nckit" }
2. App module β app/build.gradle.kts:
dependencies {
implementation(libs.nckit)
}
An app that does not use a version catalog can write the coordinate directly:
dependencies {
implementation("com.5exceptions:nckit:1.2.0")
}
3. Repositories β settings.gradle.kts includes google() and mavenCentral(), as in the sample:
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
4. Sync:
./gradlew :app:assembleDebug
Post-Installation Checklist (Android)β
-
import com.fiveexceptions.nckit.NCKitProcessorresolves - Project sync completes and resolves
com.5exceptions:nckit:1.2.0 - Debug build succeeds for arm64-v8a
-
NCKitModelLocator.modelFile(context)returns a valid path at runtime
Next stepsβ
β How to Use β copy-paste integration (file denoise)
β Sample App β reference project