Installing Dynamsoft Camera SDK framework manually

Step 1: Download the Dynamsoft Camera SDK framework

If you haven't downloaded the Dynamsoft Camera SDK iOS Edition 30-day free trial, please download it here.

NOTE: You may need to sign in to download the trial.

Step 2: Create a new iOS project in Xcode

step1

step1newproject

Step 3: Add Dynamosft Camera SDK framework to your project

3.1 Go to the General tab of your Xcode project, under Embeded Binaries section, click + button to add an embedded framework

selectproject-target

3.2 Select 'Add Other...'
select framework

3.3 Locate and select DynamsoftCameraSDK.framework
DynamsoftCameraSK.framework

3.4 Check 'Copy items if needed' and 'Create groups' and hit 'Finish'
Copy items if needed

Step 4: Drag and drop DynamsoftCameraSDKResource.bundle into your Xcode project.

dcsbundle-newest

bundle-copy-newer

Step 5: Add the required .tbd file to your project

5.1 Go to the General tab of your Xcode project, under Linked Frameworks and Libraries section, please click + button.

linked framework and libraries-new

5.2 Search for libstdc++.tbd file, select it and click Add button. Then the file will be copied to your project.

stdc. file

5.3 Search for libsqlite3.0.tbd as well, select it and click Add button. Then the file will be copied to your project.

all-required-tbd-files-new

Step 6: Find Other Linker Flags and add the value "-ObjC"

objc-newest

Note: For iOS 10 and later, please go to the Info tab of your project, under Custom iOS Target Properties section, click +, input "NSCameraUsageDescription" and press the "enter" button, and then set a value for Privacy - Camera Usage Description.

Addcamerasetting

Privancy - Camera Usage Description

If it's a Swift project, there is one more step you need to follow.

Step 7: Add a bridging header file to your application

7.1 Add a new header file to your application

addaheaderfile-new

Please make sure to name it as "****-bridging-header.h" like the following

swift-addbridgingfile

7.2 Add the following code to the newly created header file

#import <DynamsoftCameraSDK/DynamsoftCameraSDK.h>

contentinheader file

7.3 Change the build settings accordingly
Navigate to the "Build Settings" of the application, search for "swift" and copy the bridging header relevant file path to Objective-C Bridging Header in "Swift Compiler - General" like the following:

addthepath-new

Is this page helpful?

Leave a Reply

Your email address will not be published.