Skip to main content
Version: Next

Licenses and signature

These keys correspond to the Licenses & Certificate page of the Application builder.

Licenses​

These keys are located under the <Licenses> node. They define how deployment licenses are embedded in the built application. If no license is embedded, the application starts in demo mode.

KeyValuesDescription
AutomaticLicenseIntegrationTrue / False (default)When True, 4D automatically selects the most appropriate licenses to embed in the application. When False or omitted, the licenses must be designated with ArrayLicenseWin / ArrayLicenseMac
ArrayLicenseWinArray of pathsLicense files to embed in the Windows version of the application. The files can be located anywhere on the machine
ArrayLicenseMacArray of pathsLicense files to embed in the macOS version of the application. The files can be located anywhere on the machine
EvaluationModeTrue / FalseWhen True, an evaluation version of the application is built
<Preferences4D>
<BuildApp>
<Licenses>
<ArrayLicenseWin>
<ItemsCount>2</ItemsCount>
<Item1>C:\MyLicenses\4DDP140HJDSOI00FAKE1861.license4D</Item1>
<Item2>C:\MyLicenses\4UUD140DDE0DISFAKEBC5F.license4D</Item2>
</ArrayLicenseWin>
<ArrayLicenseMac>
<ItemsCount>1</ItemsCount>
<Item1>MacHD:4DDP140HJDSOI00FAKE1861.license4D</Item1>
</ArrayLicenseMac>
</Licenses>
</BuildApp>
</Preferences4D>

macOS signature​

These keys are located under the <SignApplication> node. See macOS signing certificate.

KeyValuesDescription
MacSignatureTrue / FalseMust be True to sign the application with the certificate designated by MacCertificate
MacCertificateTextCertificate name: common name of the certificate, or complete identity preference string of the keychain. Mandatory when MacSignature is True, otherwise the application is not signed
AdHocSignTrue (default) / FalseWhen True or omitted, the application is signed with an ad hoc signature if no valid signature is defined (MacSignature missing or MacCertificate invalid). When False, no ad hoc signature is applied
<Preferences4D>
<BuildApp>
<SignApplication>
<MacSignature>True</MacSignature>
<MacCertificate>Developer ID Application: My Company (XXXXXXXXXX)</MacCertificate>
</SignApplication>
</BuildApp>
</Preferences4D>