Skip to content

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

@andrewbuilder

Description

@andrewbuilder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions