---
title: "localVersionOfAssetPackWithIdentifier:error:"
framework: Background Assets
role: symbol
role_heading: Instance Method
platforms: [iOS 27.2+, iPadOS 27.2+, Mac Catalyst 27.2+, macOS 27.2+, tvOS 27.2+, visionOS 27.2+]
path: "backgroundassets/baassetpackmanager/localversionofassetpackwithidentifier:error:"
---

# localVersionOfAssetPackWithIdentifier:error:

Returns a locally available asset pack’s version number.

## Declaration

```occ
- (NSInteger) localVersionOfAssetPackWithIdentifier:(NSString *) assetPackIdentifier error:(NSError **) error;
```

## Parameters

- `assetPackIdentifier`: The asset pack’s identifier.
- `error`: A pointer to an error that will be set if an error occurs. If the asset pack isn’t available locally, then error will point to an NSError object with doc://com.apple.backgroundassets/documentation/BackgroundAssets/BAManagedErrorCode/BAManagedErrorCodeAssetPackNotFound as its code.

## Return Value

Return Value The asset pack’s version number. A return value of -1 indicates that an error occurred.
