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:
https://github.com/5Exceptions-Mobile-Team/NCKit.git - Select Exact Version
1.1.1(recommended) - Click Add Package
- In your target's Frameworks, Libraries, and Embedded Content β confirm NCKit is set to Embed & Sign
Via Package.swiftβ
Package.swift
// swift-tools-version: 5.9
import PackageDescription
let package = Package(
name: "YourApp",
platforms: [.iOS(.v16)],
dependencies: [
.package(
url: "https://github.com/5Exceptions-Mobile-Team/NCKit.git",
exact: "1.1.1"
)
],
targets: [
.target(
name: "YourApp",
dependencies: ["NCKit"]
)
]
)
Local Development Pathβ
If you have NCKit checked out locally alongside your project:
Package.swift
dependencies: [
.package(path: "../NCKit-iOS")
]
CocoaPodsβ
Add to your Podfile:
Podfile
platform :ios, '16.0'
use_frameworks!
target 'YourApp' do
pod 'NCKit',
:git => 'https://github.com/5Exceptions-Mobile-Team/NCKit.git',
:tag => '1.1.1'
end
Then install:
pod install
open YourApp.xcworkspace
Local Developmentβ
Podfile
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:
import NCKit
Post-Installation Checklist (iOS)β
-
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 Apple Silicon simulator target
Intel Mac Simulator
If you're on an Intel Mac, see the Simulator troubleshooting guide.
Next stepsβ
β How to Use β copy-paste integration (file denoise)
β Sample App β reference project