Skip to content

Files

Latest commit

2fe000b · Aug 26, 2015

History

History
This branch is 23 commits behind billymeltdown/cocoafob:master.

swift

CocoaFob Swift 2.0 Port

Instructions

Add the necessary files directly to your project. For your app they are:

  • CocoaFob/CFUtil.swift
  • CocoaFob/CocoaFobError.swift
  • CocoaFob/CocoaFobLicVerifier.swift
  • CocoaFob/CocoaFobStringExt.swift

Generate your DSA key as described in the main README and add the public key as a resource to your app.

Look at the tests in CocoaFobTests/CocoaFobTests.swift to see how to verify a registration key.

Build

To build and install the cocoafob-keygen command-line utility for generating and verifying registration keys, execute the following command in the swift subdirectory of the CocoaFob project:

xcodebuild -target cocoafob-keygen install

The utility will be installed in /usr/local/bin.

Dependencies

git subtree {add|pull} --squash --prefix swift/vendor/CommandLine git://github.com/jatoben/CommandLine.git master