To integrate VirgilSDK into your Xcode project using Carthage, perform following steps:

Create an empty file with name Cartfile in your project's root folder, that lists the frameworks you’d like to use in your project.

Add the following line to your Cartfile

github "VirgilSecurity/virgil-sdk-x" ~> 4.6.0

Run carthage update. This will fetch dependencies into a Carthage/Checkouts folder inside your project's folder, then build each one or download a pre-compiled framework.

On your application targets’ “General” settings tab, in the “Linked Frameworks and Libraries” section, add each framework you want to use from the Carthage/Build folder inside your project's folder.

On your application targets’ “Build Phases” settings tab, click the “+” icon and choose “New Run Script Phase”. Create a Run Script in which you specify your shell (ex: /bin/sh), add the following contents to the script area below the shell:

/usr/local/bin/carthage copy-frameworks

and add the paths to the frameworks you want to use under “Input Files”, e.g.: