DyScan
  • DyScan Integration Guide
  • iOS Integration Guide
  • Android Integration Guide
  • React Native Integration Guide
  • Cordova Integration Guide
  • Integrity Verification
  • Migrating from card.io
    • Migrating from card.io (iOS)
    • Migrating from card.io (Android)
  • Integrating with Stripe
    • Integrating with Stripe (iOS)
    • Integrating with Stripe (Android)
  • Alternate Ways to Integrate iOS
    • Integrating with Swift Package Manager
    • Integrating with Carthage
    • Integrating as a Framework
  • Alternate Ways To Integrate Android
    • Manually Importing the Library
    • Using DyScanView
  • MIGRATING FROM 1.0.X TO 1.1.X
    • Migrating from 1.0.x to 1.1.x (iOS)
    • Migrating from 1.0.x to 1.1.x (Android)
    • Migrating from 1.0.x to 1.1.x (React Native)
Powered by GitBook
On this page

Was this helpful?

  1. Alternate Ways to Integrate iOS

Integrating as a Framework

PreviousIntegrating with CarthageNextManually Importing the Library

Last updated 2 years ago

Was this helpful?

Using is the easiest way to integrate DyScan. If you would rather do this, click .

After getting the access token for Dyneti's repo access, go to any temporary directory outside your project directory and clone our repository with the following terminal commands:

git clone https://dyscan@github.com/Dyneti/dyscan-ios-distribution.git
git checkout master

When asked for a password for user "dyscan", paste the access token that we provided. Navigate to the variant directory of your choice (Universal is recommended).

Include DyScan.xcframework into your project.

Include DyScan.xcframework under “Frameworks, Libraries, and Embedded Content” in your app. You can see this in your Xcode project’s “General” settings. Select "Embed & Sign" option from Embed column.

If your app does not already ask for camera permissions, add the key “NSCameraUsageDescription” (Privacy - Camera Usage Description) to your app's Info.plist file. You should set the value to be the string a user sees when they are prompted for the camera permission (e.g. To scan credit cards).

DyScan should be integrated properly now. See on how to interface with it.

  1. Add DyScanAssets.xcassets, DyScan.xcframework and TensorFlowLiteC.xcframework into your project

  2. Go to your target's Build Phases tab

  3. Add DyScan.xcframework and TensorFlowLiteC.xcframework into Link Binary With Libraries phase with Status Required set

  4. Add DyScanAssets.xcassets into Copy Bundle Resources phase

  5. Go to your target's General tab

  6. Verify that in Frameworks, Libraries, and Embedded Content section DyScan.xcframework and TensorFlowLiteC.xcframework have Embed set to Do Not Embed

If you are getting C/C++ errors during build process, add libc++.tbd into Link Binary With Libraries phase with Status Required set in your target's Build Phases tab.

If your app does not already ask for camera permissions, add the key “NSCameraUsageDescription” (Privacy - Camera Usage Description) to your app's Info.plist file. You should set the value to be the string a user sees when they are prompted for the camera permission (e.g. To scan credit cards).

DyScan should be integrated properly now. See on how to interface with it.

CocoaPods
here
this guide
this guide