Pass the OTHER_CODE_SIGN_FLAGS variable (aka "Other Code Signing Flags") to codesign, as Xcode does.
Attach a file by drag & drop or click to upload