Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
andrewbuilder opened this issue Oct 17, 2018 · 0 comments
Open

Comments

@andrewbuilder
Copy link

andrewbuilder commented Oct 17, 2018

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant