CocoaPods is a dependency manager for your Xcode projects, which automates and simplifies the process of using 3rd-party libraries like Dynamsoft Camera SDK in your projects. The dependencies are specified in a single text file called a Podfile.
If you haven't installed CocoaPods on your Mac machine, please install it first. For the info on how to install, please click here.
Step 1: In your Xcode project, create a new file called Podfile under the same directory with the xxx.xcodeproj file and add the following:
platform :ios xcodeproj 'xxx.xcodeproj' target 'xxx' do pod 'ios-dynamsoft-camera-sdk', :git =&amp;amp;amp;amp;amp;amp;gt; 'https://github.com/dynamsoft-dcs/ios-dynamsoft-camera-sdk.git' end
Step 2: Open Terminal, cd to the directory where the project is located, and then run the following command.
$ pod install
Step 3: Quit Xcode after installation.
Step 4: Double-click the xxx.xcworkspace file, which is in the same directory with the xxx.xcodeproject file, to open the project.
If It's a Swift project, navigate to the "Build Settings" of the project, drag and drop the bridging header file "DynamsoftCameraSDK-Bridging-Header.h" under the Pods folder to Objective-C Bridging Header in "Swift Compiler - General".