Integration in an Xcode project
First, you need to the files on our sharing platform. Here you should have available a few files.
- Your license file in a zip. You can unzip it to integrate it in your project.
- The iOS and Android build. Depending on your license you can download the appropriate versions. Since the new build are a little heavier you we have available a version without plates (if you don't need it) for each build.
Integration:
Add the xcframework to your project and the license file
icare_smartscan.lic
in your project. (The license file should be present in your app release)Project Settings (Some of this steps aren't necessary anymore if you have a recent xcode version) : a. Disable bitcode in your project settings b. C++ language Dialect should be switched to Compiler Default c. C++ Standard Library should be libc++ (LLVM c++... )
In the linked framework you want to add libc++.tbd from the system libraries
You can import the module
Add an entry with the key "Privacy - Camera Usage Description" in your project-name-info.plist file to allow your app to access the camera
You can Import the necessary dependencies by module or header
If you're using qrcode, it's now needed to use the
-all_load
in the "other compiler flags" in your project.
Migration from Smartscan iOS V 2.x.y
- Remove your opencv dependencies
- Add the new xcframework and your license file and your project
- If you're using the license plates, you can migrate to theia. Replace the
CODE_EU_PLATES
withCODE_THEIA_PLATE_READER
as reading type, and you can also remove all theCODE_PLT_XYZ
in the subtypes. All countries are included by default. - Migrate to use the
SmartScanResult.metadata
to get information (like the plate country) instead of codeSmartScanResult.codeDescription
.