Commit a8b707f
committed
Eliminate switch-must-be-exhaustive warning in Apple sign-in handler
Replace the switch over ASAuthorizationError.Code with an if/else
cascade. ASAuthorizationError.Code is non-frozen and gains new cases
(notInteractive in 15.4, matchedExcludedCredential in 18.0,
credentialImport / credentialExport in 18.2) that can only be
referenced behind #available. With a switch, this trips
"switch must be exhaustive" even with @unknown default, because
the compiler sees those known cases at compile time but they aren't
listed explicitly. An if-cascade has no exhaustiveness requirement
and stays readable.
The project-level IPHONEOS_DEPLOYMENT_TARGET = 10.0 (out-of-range)
warning is left in place for now — the IFTTTConnectSDK target
inherits that value, and bumping it surfaces real dead-code paths
(SFWebService and ConnectionVerificationSession's iOS 11 fallback)
that need a separate refactor to delete.1 parent 474dfc0 commit a8b707f
1 file changed
Lines changed: 26 additions & 35 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
78 | 68 | | |
| 69 | + | |
79 | 70 | | |
80 | 71 | | |
81 | 72 | | |
| |||
0 commit comments