---
title: NSStoreUUIDKey
framework: coredata
role: symbol
role_heading: Global Variable
path: coredata/nsstoreuuidkey
---

# NSStoreUUIDKey

A key that provides the store’s UUID.

## Declaration

```swift
let NSStoreUUIDKey: String
```

## Discussion

Discussion The store UUID is useful to identify stores through URI representations, but it is not guaranteed to be unique. The UUID generated for new stores is unique—users can freely copy files and thus the UUID stored inside—so if you track or reference stores explicitly you need to be aware of duplicate UUIDs and potentially override the UUID when a new store is added to the list of known stores in your application.

## See Also

### Managing a store’s metadata

- [setMetadata(_:type:at:options:)](coredata/nspersistentstorecoordinator/setmetadata(_:type:at:options:).md)
- [metadataForPersistentStore(type:at:options:)](coredata/nspersistentstorecoordinator/metadataforpersistentstore(type:at:options:).md)
- [setMetadata(_:forPersistentStoreOfType:at:options:)](coredata/nspersistentstorecoordinator/setmetadata(_:forpersistentstoreoftype:at:options:).md)
- [metadataForPersistentStore(ofType:at:options:)](coredata/nspersistentstorecoordinator/metadataforpersistentstore(oftype:at:options:).md)
- [metadata(for:)](coredata/nspersistentstorecoordinator/metadata(for:).md)
- [setMetadata(_:for:)](coredata/nspersistentstorecoordinator/setmetadata(_:for:).md)
- [NSStoreTypeKey](coredata/nsstoretypekey.md)
