---
title: "init(entityVersionHashes:in:versionChecksum:)"
framework: coredata
role: symbol
role_heading: Initializer
path: "coredata/nsmanagedobjectmodelreference/init(entityversionhashes:in:versionchecksum:)"
---

# init(entityVersionHashes:in:versionChecksum:)

Creates an object model reference with the entities corresponding to the specified entity version hashes.

## Declaration

```swift
init(entityVersionHashes versionHash: [AnyHashable : Any], in bundle: Bundle?, versionChecksum: String)
```

## Parameters

- `versionHash`: The dictionary of entity names and their corresponding version hashes.
- `bundle`: The bundle to search.
- `versionChecksum`: The checksum of the object model’s version.

## Discussion

Discussion To determine an object model’s version checksum, use its versionChecksum property. Alternatively, you can find the checksum in the versioned model’s VersionInfo.plist file or in Xcode’s build log.

## See Also

### Creating a reference

- [init(model:versionChecksum:)](coredata/nsmanagedobjectmodelreference/init(model:versionchecksum:).md)
- [init(fileURL:versionChecksum:)](coredata/nsmanagedobjectmodelreference/init(fileurl:versionchecksum:).md)
- [init(name:in:versionChecksum:)](coredata/nsmanagedobjectmodelreference/init(name:in:versionchecksum:).md)
