init(fileURL:versionChecksum:)
Creates an object model reference for the model at the specified file URL.
Declaration
init(fileURL: URL, versionChecksum: String)Parameters
- fileURL:
The on-disk location of the managed object model.
- 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.