Commit 157cfc8
committed
Fix crash on iOS 26 when converting some NSError instances to ErrorCode
Some NSError values, when converted to ErrorCode using ErrorCode(_nsError:), cause a crash on iOS 26 — even if they represent known error codes like .SCPErrorCanceled.
This does not occur on iOS 18.5 (including simulators), where the same code executes without issue.
Crashes occur inconsistently across error codes and are triggered during logging or property access (e.g. print(errorCode.code)), with messages like:
Fatal error: Unknown error at SignalCompression/SignalEncoder.swift.
This commit avoids triggering such conversions/logging that may crash on iOS 26.1 parent 805a719 commit 157cfc8
File tree
1 file changed
+1
-1
lines changed- Modules/Sources/Hardware/CardReader/StripeCardReader
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1109 | 1109 | | |
1110 | 1110 | | |
1111 | 1111 | | |
1112 | | - | |
| 1112 | + | |
1113 | 1113 | | |
1114 | 1114 | | |
1115 | 1115 | | |
| |||
0 commit comments