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

'Switch must be exhaustive' error when building for iOS #476

Open
danemco opened this issue Mar 9, 2024 · 2 comments
Open

'Switch must be exhaustive' error when building for iOS #476

danemco opened this issue Mar 9, 2024 · 2 comments
Labels

Comments

@danemco
Copy link

danemco commented Mar 9, 2024

When building for iOS, I get the error: "switch must be exhaustive" in the Fingerprint swift file.

My solution was to add the opticID case to the list:

 if #available(iOS 11.0, *) {
                switch(authenticationContext.biometryType) {
                case .none:
                    biometryType = "none";
                case .touchID:
                    biometryType = "finger";
                case .faceID:
                    biometryType = "face";
                case .opticID:
                    biometryType = "optic";
                }
            }
@danemco danemco added the bug label Mar 9, 2024
@Crecket
Copy link

Crecket commented Mar 12, 2024

@minduch
Copy link

minduch commented Sep 30, 2024

Yep, this seems to do the trick, but needs documentation... This issue exists for Xcode 16 and e.g. Swift version 6 (in main project code, I don't know how a plugin can handle Swift code versions).

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

No branches or pull requests

3 participants