Skip to content
New issue

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

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

Already on GitHub? # to your account

Patch for compiling on xcode 15 ios 17 #294

Open
mouneyrac opened this issue Oct 26, 2023 · 1 comment
Open

Patch for compiling on xcode 15 ios 17 #294

mouneyrac opened this issue Oct 26, 2023 · 1 comment
Assignees

Comments

@mouneyrac
Copy link

After updating to xcode15, latest capacitor version, ios 17 etc...

=> the plugin returned an error when compiling in Xcode saying:

Switch must be exhaustive.

I could compile with this patch:

diff --git a/node_modules/capacitor-face-id/ios/Plugin/Plugin.swift b/node_modules/capacitor-face-id/ios/Plugin/Plugin.swift
index 3c7bb8a..48642fe 100644
--- a/node_modules/capacitor-face-id/ios/Plugin/Plugin.swift
+++ b/node_modules/capacitor-face-id/ios/Plugin/Plugin.swift
@@ -27,6 +27,10 @@ public class FaceId: CAPPlugin {
                 call.success([
                     "value": "FaceId"
                 ])
+            @unknown default:
+                call.success([
+                    "value": "Unknown"
+                ])
             }
         } else {
             call.success([

@erickqe
Copy link

erickqe commented Mar 19, 2024

same, please fix it

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

No branches or pull requests

3 participants