Integration in an Xcode project
This project is a demo iOS app to show how to integrate our decoding library in an iOS application. To make it work, just follow the few steps below :
- Add the xcframework to your project
- Project Settings :
- Disable bitcode in your project settings
- C++ language Dialect should be switched to Compiler Default
- C++ Standard Library should be libc++ (LLVM c++... )
- In the linked framwork you want to add libc++.tbd from the system libraries
- Also add the opencv2.xcframework from here : https://gitlab.icare.ch/smartid-scan-demos/opencv_xcframeworks/-/releases (Version 4.5.3)
- 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 necessay dependcies 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.