To execute Receigen on command line, open the Terminal application. It is location into the Application/Utilities folder.

Reference

To access the command line help, type the command:

$> /Applications/Receigen.app/Contents/MacOS/Receigen --help

When invoked, Receigen generates the file containing the validation code.

OS X Usages

The following command generates the receipt validation code in a file named receipt.h that:

$> /Applications/Receigen.app/Contents/MacOS/Receigen --identifier com.example.MyApplication --version 1.3.0 --os osx > receipt.h

The following command generates the receipt validation code in a file named receipt.h that:

$> /Applications/Receigen.app/Contents/MacOS/Receigen --identifier com.example.MyApplication --version 1.3.0 --os osx --success checkinapp --failure exitwith173 > receipt.h

The customization guide describes all the available options and behaviors.

iOS Usages

The following command generates the receipt validation code in a file named receipt.h that:

$> /Applications/Receigen.app/Contents/MacOS/Receigen --identifier com.example.MyApplication --version 1.3.0 --os ios > receipt.h

The following command generates the receipt validation code in a file named receipt.h that:

$> /Applications/Receigen.app/Contents/MacOS/Receigen --identifier com.example.MyApplication --version 1.3.0 --os ios --success checkinapp --failure refreshreceipt > receipt.h

The customization guide describes all the available options and behaviors.