Contents

init(entityVersionHashes:in:versionChecksum:)

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

Declaration

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

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