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
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
Step 4: Drag and drop DynamsoftCameraSDKResource.bundle into your Xcode project.
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.
5.2 Search for libstdc++.tbd file, select it and click Add button. Then the file will be copied to your project.
5.3 Search for libsqlite3.0.tbd as well, select it and click Add button. Then the file will be copied to your project.
Step 6: Find Other Linker Flags and add the value "-ObjC"
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.
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
Please make sure to name it as "****-bridging-header.h" like the following
7.2 Add the following code to the newly created header 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: