init(name:in:versionChecksum:)
Creates an object model reference for the named model in the specified bundle.
Declaration
init(name modelName: String, in bundle: Bundle?, versionChecksum: String)Parameters
- modelName:
The name of the managed object model in the specified bundle.
- 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.