Files
Christian Tietze 9d6a3572cf link to swift5/
2019-07-08 15:50:20 +02:00
..
2018-04-04 08:57:31 +02:00
2018-02-20 08:35:06 +01:00
2018-11-25 13:03:07 +01:00
2019-07-08 15:50:20 +02:00

CocoaFob Swift 4.0 Port

For a version targeting Swift 5, see https://github.com/glebd/cocoafob/tree/master/swift5

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