Open danemco opened 8 months ago
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"; } }
https://github.com/NiklasMerz/cordova-plugin-fingerprint-aio/blob/master/src/ios/Fingerprint.swift#L55 Fixed in >v5 at least
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).
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: