Add image injection SDK to your iOS app Learn how to implement Kobiton’s custom SDK in your iOS application to enable Image Injection. Prerequisites A project in Xcode 14.0 or later that targets iOS/iPadOS 14.0 or later devices. The project uses supported camera methods. Download the SDK. The downloaded file’s name should be KobitonSDK-ios.zip. Integrate the SDK Extract KobitonSDK-ios.zip into the KobitonSdk.framework folder. Open your Xcode project. Drag and drop the KobitonSdk.framework folder into any location in your project folder. In the popup, check the box Copy items if needed. Select the appropriate targets that you want to include the SDK in, then choose Finish. In the project navigator, select the top project name, then go to the General tab of your project settings. In the Frameworks, Libraries, and Embedded Content section, make sure the SDK is listed. Select Embed & Sign for the SDK in the Embed dropdown menu. React Native and Expo notes In a React Native iOS app, KobitonSdk.framework intercepts frames from AVCaptureVideoDataOutput at the framework level. JavaScript camera APIs that render a live preview from that output, including expo-camera, receive injected frames without any JavaScript or import changes. Expo managed workflow expo prebuild can regenerate native project files, including the iOS project and the Podfile, and overwrite manual changes. Integrate the framework through the project’s Expo configuration or another persistent build mechanism so each prebuild reapplies it. CocoaPods vendored frameworks and Expo config plugins are relevant approaches. Kobiton does not publish an Expo config plugin for the framework. Capture limitations KobitonSdk.framework injects frames into AVCaptureVideoDataOutput only. The following capture paths common in React Native apps do not return injected frames: takePictureAsync on expo-camera and similar APIs. These use AVCapturePhotoOutput for still-image capture, which KobitonSdk.framework does not intercept. The returned image is the real camera frame. Software-rendered screenshot APIs, such as react-native-view-shot. These cannot capture a Metal-composited video layer and return a black frame. Build and Upload Build and export your project as an .ipa file. Upload the .ipa file to the app repository or to the cloud and install the app on a Kobiton device, then follow the guides to use image injection in a manual session or an automation session.