How to add the SDK to the project?
Adding frameworks using CocoaPods
Document Reader libraries are available via CocoaPods.
First of all, add the API library, simply adding the following lines to the Podfile
file of your project:
pod 'DocumentReader'
And then add one of the Core libraries depend on the functionality that you wish and the license capabilities:
Install Barcode library edition:
pod 'DocumentReaderBarcode'
Install Bounds library edition:
pod 'DocumentReaderBounds'
Install DocType library edition:
pod 'DocumentReaderDocType'
Install Full library edition:
pod 'DocumentReaderFull'
Install FullRFID library edition:
pod 'DocumentReaderFullRFID'
Install MRZ library edition:
pod 'DocumentReaderMRZ'
Install MRZRFID library edition:
pod 'DocumentReaderMRZRFID'
Install MRZBarcode library edition:
pod 'DocumentReaderMRZBarcode'
Install BarcodeMRZRFID library edition:
pod 'DocumentReaderBarcodeMRZRFID'
Install OCR library edition:
pod 'DocumentReaderOCR'
Install OCRRFID library edition:
pod 'DocumentReaderOCRRFID'
Adding frameworks manually
Drag DocumentReader.framework
and DocumentReaderCore.framework
into the "Frameworks, Libraries, and Embedded Content" section of your target:

Frameworks can be found here.
Add a new "Run Script Phase" in your target’s "Build Phases" (optional but recommended)
Paste the following line in the script text field of "Run Script Phase":
bash "$BUILT_PRODUCTS_DIR/$FRAMEWORKS_FOLDER_PATH/DocumentReader.framework/strip-unused-architectures-from-target.sh"
This script copies the frameworks’ .dSYM
files into your target’s .xcarchive
. These files are needed if you want to include app symbols necessary for your application to receive symbolicated crash logs from Apple when you upload it to the App Store.

Last updated
Was this helpful?