---
title: "generateStaticLicense(licenseID:appKey:)"
framework: applicensedeliverysdk
role: symbol
role_heading: Instance Method
path: "applicensedeliverysdk/aldsession/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.

## Declaration

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

## Parameters

- `licenseID`: licenseID chosen for the license
- `appKey`: The app key provided for the specified app
