How to Upgrade
From Version 10.x to 11.x
Update the Libraries
There are three ways in which you can include the DynamsoftBarcodeReaderBundle library in your app:
Option 1: Add the xcframeworks via Swift Package Manager
-
In your Xcode project, go to File –> AddPackages.
-
In the top-right section of the window, search “https://github.com/Dynamsoft/barcode-reader-spm”
-
Select
barcode-reader-spm, chooseUp to Next Major Version, then click Add Package. -
Check all the xcframeworks and add.
Option 2: Add the Frameworks via CocoaPods
-
Add the frameworks in your Podfile, replace
TargetNamewith your real target name.target 'ScanSingleBarcode' do use_frameworks! pod 'DynamsoftBarcodeReaderBundle','{version-number}' endPlease view user guide for the correct version number.
-
Execute the pod command to install the frameworks and generate workspace([TargetName].xcworkspace):
pod install
Option 3: Add Local xcframeworks files
-
Download the SDK package from the Dynamsoft Website. After unzipping, you will find a collection of xcframework files under the Dynamsoft\Frameworks directory.
- 📄 DynamsoftBarcodeReaderBundle.xcframework
- 📄 DynamsoftCaptureVisionBundle.xcframework
-
Drag and drop the above .xcframework files into your Xcode project. Make sure to check
Copy items if neededandCreate groupsto copy the framework into your project’s folder. -
Click on the project settings then go to General –> Frameworks, Libraries, and Embedded Content. Set the Embed field to Embed & Sign for all above xcframeworks.
Update the Template File
You can use the template converter to upgrade your template. View the online template converter
From version 9.x or earlier
Dynamsoft Barcode Reader SDK has been refactored to integrate with DynamsoftCaptureVision (DCV) architecture since version 10. To upgrade from version 9.x or earlier to 11.x, we recommend you to follow the User Guide and re-write your codes. This section highlights only the key changes and necessary actions for upgrading the SDK.