---
title: "initWithContentsOfURL:applicationGroupIdentifier:error:"
framework: backgroundassets
role: symbol
role_heading: Instance Method
path: "backgroundassets/baassetpackmanifest/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.

## Declaration

```occ
- (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.

## See Also

### Creating an asset pack manifest

- [initFromData:applicationGroupIdentifier:error:](backgroundassets/baassetpackmanifest/initfromdata:applicationgroupidentifier:error:.md)
