<!--
{
  "availability" : [
    "iOS: 26.0.0 -",
    "iPadOS: 26.0.0 -",
    "macCatalyst: 26.0.0 -",
    "macOS: 26.0.0 -",
    "tvOS: 26.0.0 -",
    "visionOS: 26.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BackgroundAssets",
  "identifier" : "/documentation/BackgroundAssets/BAAssetPackManifest/initWithContentsOfURL:applicationGroupIdentifier:error:",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Background Assets"
    ],
    "preciseIdentifier" : "c:objc(cs)BAAssetPackManifest(im)initWithContentsOfURL:applicationGroupIdentifier:error:"
  },
  "title" : "initWithContentsOfURL:applicationGroupIdentifier:error:"
}
-->

# initWithContentsOfURL:applicationGroupIdentifier:error:

Initializes a representation of a manifest in memory given a URL to the manifest’s representation as a JSON file on disk.

```
- (instancetype) initWithContentsOfURL:(NSURL *) URL applicationGroupIdentifier:(NSString *) applicationGroupIdentifier error:(NSError **) error;
```

## Parameters

`URL`

A URL to a local JSON file.

`applicationGroupIdentifier`

The identifier of the application group in which to store unmanaged asset packs that are downloaded from the manifest.

`error`

A pointer to an error that will be set if an error occurs.

---

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)