How to Add the Library to Your Xcode Project

To create an application which uses ABBYY Mobile Capture SDK, you will need to add the library to your project, copy resource files and sign the framework. This is required for new projects only — packaged examples work out of the box.

It is recommended to use the scripts from the distribution for configuring. If needed, a manual configuration is also possible.

Building application using scripts

1. Add the license file to your project (simply drag and drop it into your project window). The license file should be located in the project root folder.

2. Copy the assets and libs directories to the same level with the project folder. This is required for correct scripts work. If you want to change the assets and libs directories' location, make sure to modify the scripts.

3. On the Build Options tab set Enable Bitcode option to No.

4. Select your project in the Target group and open the Build Phases tab. In the Link Binary With Libraries section, click "+" and add the AbbyyRtrSDK.framework. The Status of the library should be "Required".

5. Add all the other frameworks to your project using script:

    1. In Build Phases, add a new Run Script phase.
    2. Run the copy_frameworks.sh script located in the libs/ folder to add all the frameworks to you project. It will also remove from the frameworks the non-active CPU architectures (the complete list depends on the project settings) and sign the resulting framework. This is a required step before uploading your application to App Store.

/bin/sh "${SRCROOT}/../libs/copy_frameworks.sh"

6. Now you need to add the resource files and set up the copying rules:

    1. In Build Phases, add a new Run Script phase.
    2. Run the copy_assets.py script located in the assets/ folder to automatically copy all resource files to corresponding destinations and add necessary dictionaries. Your scenario may require only certain assets, therefor the script provides customizable settings: keys. Set the key value to copy only specified for the scenario source files. See the script file for details.

python "${SRCROOT}/../assets/copy_assets.py"  

Building application in manual mode

 Important! Your application needs an Internet connection to gather the information about the current state of the library.

02.03.2022 12:59:15

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.