<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "applicensedeliverysdk",
  "identifier" : "/documentation/AppLicenseDeliverySDK/ALDSession/generateStaticLicense(licenseID:appKey:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "App License Delivery SDK"
    ],
    "preciseIdentifier" : "s:3ALD10ALDSessionC21generateStaticLicense9licenseID6appKeyys6UInt64V_AA06ALDAppI0VtKF"
  },
  "title" : "generateStaticLicense(licenseID:appKey:)"
}
-->

# generateStaticLicense(licenseID:appKey:)

Generates a static license based on the provided ALDLicenseAttribute. This method produces a static license, in a bytes array.
A static license is a minimal license that is only used to install apps on the device and is not meant to enforce marketplace defined rights.

```
func generateStaticLicense(licenseID: UInt64, appKey: ALDAppKey) throws
```

## Parameters

`licenseID`

licenseID chosen for the license

`appKey`

the app key provided for the specified app

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)