Skip to content
James Lappin edited this page Aug 9, 2018 · 10 revisions

Carthage - decentralized dependency management.

  • You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthage
  • To integrate Judopay into your Xcode project using Carthage, specify it in your Cartfile:
github "JudoPay/JudoKit" >= 7.1.1
github "JudoPay/DeviceDNA-iOS" >= 0.1.8
github "dataTheorem/TrustKit" "master"
  • Execute the following command in your project folder. This should clone the project and build the judoKit scheme:
$ carthage update
$ carthage bootstrap
  • Navigate to your projects 'Embedded Binaries' section of the General Settings tab.
    • From the Carthage/Build folder, drag and drop JudoKit.framework and TrustKit.framework.
    • From the Carthage/Checkouts folder, drag and drop DeviceDNA.framework.
  • On your application targets’ 'Build Phases' settings tab, click the '+' icon and choose 'New Run Script Phase'. Create a Run Script with the following contents:
/usr/local/bin/carthage copy-frameworks
  • And add the paths to the frameworks you want to use under 'Input Files', e.g.:
$(SRCROOT)/Carthage/Build/iOS/JudoKit.framework
$(SRCROOT)/Carthage/Build/iOS/TrustKit.framework
$(SRCROOT)/Carthage/Checkouts/DeviceDNA-iOS/Framework/DeviceDNA.framework
Clone this wiki locally