CODESIGN_ALLOCATE(1) General Commands Manual CODESIGN_ALLOCATE(1)

codesign_allocate - add code signing data to a Mach-O file

codesign_allocate -i oldfile [ -a arch size ]... [ -A cputype cpusubtype size ]... -o newfile

codesign_allocate sets up a Mach-O file used by the dynamic linker so space for code signing data of the specified size for the specified architecture is embedded in the Mach-O file. The program must be passed one -a argument or one -A argument for each architecture in a universal file, or exactly one -a or -A for a thin file.

specifies the input file as oldfile.
specifies the output file as newfile.
specifies for the architecture arch that the size of the code signing data is to be size. The value of size must be a multiple of 16.
specifies for the architecture as a pair of decimal integers for the cputype and cpusubtype that the size of the code signing data is to be size. The value of size must be a multiple of 16.
remove the code signature data and the LC_CODE_SIGNATURE load command. This is the same as specifiying the -a or -A option with a size of zero.
page align the code signature data by padding string table and changing its size. This is not the default as codesign(1) currently can't use this option.
April 17, 2017 Apple, Inc.