<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "applicensedeliverysdk",
  "identifier" : "/documentation/AppLicenseDeliverySDK/ALDAppKey/init(appleItemID:appKeyBlob:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "App License Delivery SDK"
    ],
    "preciseIdentifier" : "s:3ALD9ALDAppKeyV11appleItemID03appC4BlobACs6UInt64V_Says5UInt8VGtKcfc"
  },
  "title" : "init(appleItemID:appKeyBlob:)"
}
-->

# init(appleItemID:appKeyBlob:)

Creates an app key to decrypt a license request.

```
init(appleItemID: UInt64, appKeyBlob: [UInt8]) throws
```

## Parameters

`appleItemID`

A unique identifier for the app. See <doc://com.apple.documentation/documentation/MarketplaceKit/AppleItemID>.

`appKeyBlob`

A *key blob* for a specific app variant that App Store Connect provides your marketplace server during app ingestion. For more information, see <doc://com.apple.documentation/documentation/marketplacekit/ingesting-an-alternative-distribution-package>.

---

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)