KeenASR SDK for iOS is an Objective C framework. If integrating in Swift iOS projects – in addition to Installation steps for Objective C – you will also need to perform the following steps:

1. Enable Swift-ObjectiveC Bridge

  • Click on project in the left-side navigation

  • Choose the target under TARGETS

  • Under Build Settings tab, locate row for Objective C Bridging Header and specify $(PROJECT_NAME)/KeenASR-Bridging-Header.h

  • Create an empty file $(PROJECT_NAME)/KeenASR-Bridging-Header.h in your project directory where other source files are located. Add the following statement in this file:

  • #import <KeenASR/KeenASR.h>

  • Alternatively, you can download this file. Make sure it’s stored in $(PROJECT_DIR}/${PROJECT_NAME}/ directory (i.e. it matches the path you specified in the setting above)

2. Set Framework Search Path

  • Click on project in the left-side navigation

  • Choose the appropriate target under TARGETS list

  • Under Build Settings tab, locate row called ‘Framework Search Paths’ and set its value to $(PROJECT_DIR) (once set, this value will show as a project directory in your file system)

You can also review Objective C API Reference to get familiar with classes and methods. We plan to provide a full Swift documentation in the future.