Skip to main content
Version: 2.5.4

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 :

  1. Add the xcframework to your project
  2. Project Settings :
    1. Disable bitcode in your project settings
    2. C++ language Dialect should be switched to Compiler Default
    3. C++ Standard Library should be libc++ (LLVM c++... )
  3. In the linked framwork you want to add libc++.tbd from the system libraries
  4. Also add the opencv2.xcframework from here : https://gitlab.icare.ch/smartid-scan-demos/opencv_xcframeworks/-/releases (Version 4.5.5)
  5. You can import the module
  6. 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
  7. You can Import the necessay dependcies by module or header
  8. If you're using qrcode, it's now needed to use the -all_load in the "other compiler flags" in your project.