core-data icon indicating copy to clipboard operation
core-data copied to clipboard

Build error "Switch must be exhaustive" in file CloudKit+Sync.swift

Open andrewbuilder opened this issue 7 years ago • 0 comments

Just purchased your book thank you for writing this I am finding it very helpful already.

I've downloaded "core-data-master" from GitHub, updated all settings per instructions including addition of Mood Record Type in CloudKit Dashboard, note following error...

In file CloudKit+Sync.swift

under var permanentCloudKitError: Bool { } and switch errorCode { } note the build error

Switch must be exhaustive.

Edit: Xcode offered the following fix.. case .assetNotAvailable

There are a few other compiler warnings but this seems to be the only problem stopping the project from running.

Sorry this is my first attempt at using GitHub despite being a member for years and I've never involved myself in a project before so forgive me if my comments are not very well set out. Happy for some constructive criticism.

switchmustbeexhaustive

andrewbuilder avatar Oct 17 '18 07:10 andrewbuilder