Getting Started

The iOS SDK is delivered as a binary .framework file and supports both Objective-C and Swift. We also included an additional framework as a dependency: Realm. In order to properly install the SDK, you must make sure to import and link both frameworks.

Download the iOS SDK

Installation

  • Drag EkoChat.framework and Realm.framework to your project's Embedded Binaries. Make sure that Copy items if needed is selected and click Finish. Also switch the Embed section as Embed & Sign.

step-1

In your App's target's Build Settings:

  • Ensure that Always Embed Swift Standard Libraries is set to YES.

step-2
  • Add $(PROJECT_DIR)/<Path to EkoChat.framework>/EkoChat.framework/zlib/ into the Import Paths under the Swift Compiler - Search Paths section.

step-3

When targeting iOS, watchOS or tvOS:

  • create a new Run Script Phase in the app's target's Build Phases and paste the following snippet in the script text field:

bash "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/EkoChat.framework/strip-frameworks.sh"
step-4

This last step is required to work around an App Store submission bug when archiving universal binaries.