Skip to main content
PESDK/iOS/Getting Started/Integration

Manual Integration

Quick guide to manually integrating PhotoEditor SDK for iOS into your application.

Free Trial#

Our tech is modified to be used for testing purposes without a license key. To start testing just follow this Get Started guide and leave out the step of entering the commercial license keys. The editor will simply render a watermark over the preview and final results. And in case you need any technical assistance, make sure to reach out to us: https://img.ly/support. We’ll be glad to help.

Requirements#

PhotoEditor SDK requires iOS 13+ and Xcode 13.3+ with Swift 5.6+. If you have to use older versions of Swift or support older versions of iOS, please have a look at previous versions.

Manual Integration#

If you prefer not to use CocoaPods, you can integrate PhotoEditor SDK into your project manually via a dynamic framework.

  1. Download the SDK here, then simply drag ImglyKit.framework as well as PhotoEditorSDK.framework into the Frameworks, Libraries, and Embedded Content section of your target and make sure that the Embed settings are set to Embed & Sign:

Embedded Binaries

  1. Open your project's Build Phases tab and add a new Run Script Phase somewhere below the Embed Frameworks phase. Then copy the following line into the newly created build phase's text field:
bash "$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/ImglyKit.framework/strip-framework.sh"

Run Script Phase

This script will remove the simulator slices from the universal binary, because Xcode does not allow uploading apps to App Store Connect that contain slices for both, the simulator and for devices.

  1. If you are integrating PhotoEditor SDK into an otherwise Objective-C only project you also have to set the Always Embed Swift Standard Libraries build setting in your project's Build Settings tab to Yes.

  2. To receive symbolicated crash logs, you need to include our debug symbols. Copy the ImglyKit.framework.dSYM and PhotoEditorSDK.framework.dSYM file to your project's tree without adding it to any of your targets. Then add the copied file as an input file to the Run Script Phase of step 2.

Copy dSYM

Show Editor with SwiftUI or UIKit#