Configuring your app licensing environment
Create your account-level signing assets and build the SDK for your target platform.
Overview
After your developer account qualifies to build an alternative app marketplace, you can use App License Delivery SDK to secure the installation of your marketplace app and the apps that you distribute from your alternative marketplace. To set up your development environment for app licensing:
Create your App License Delivery signing assets.
Build the SDK on your target platform (macOS or Linux).
For more information about alternative app marketplaces, see MarketplaceKit.
Generate alternative marketplace app licensing assets
To facilitate generating licenses, create the following App License Delivery (ALD) assets in Certificates, Identifiers & Profiles:
- Encryption certificate
Decrypts license requests that a device sends to your licensing endpoint.
- Signing certificate
Signs licenses you create and verifies their authenticity on device.
- PASK
A secret that secures the transport of app key blobs.
For more information about generating these assets, see Create app license delivery certificates.
Build the SDK for macOS
To use the SDK in a Swift project for macOS:
Expand the SDK archive.
In Xcode, choose the File menu > Add Package Dependencies…
In the package dependencies window, click Add Local…
In the file bowser, choose the expanded SDK archive folder.
Import
ALDin your Swift licensing source files:
/** License creation */
import ALD
struct MyLicenseGenerator: ParsableCommand { ... }Build the SDK for Linux
To build the SDK for Linux:
Download a Swift container from https://www.swift.org/download.
Choose Ubuntu 22.04 for
x86_64with Swift Docker tag5.9-jammy.Install the Docker container and start it.
Copy the
aldsdkarchive file (with the.tarfile extension) into the container and expand it.In Terminal, navigate to the
aldsdkroot directory.Run the following command to build the SDK and produce an example license:
swift test -c release --triple x86_64-unknown-linux-gnu \
-Xbuild-tools-swiftc -Dx86_64_linux_gnu_TRIPLE