You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is an issue I've reported to Apple (FB9968041). According to my understanding the "new" formatting and parsing styles (based on ParseStrategy protocol) were introduces with iOS 15 and macOS 12 and are Apple platform specific.
Looking up the Initialiser init(_ value: String, format: IntegerFormatStyle) or IntegerFormatStyle within Xcode is giving me a result in "Foundation" but doing the same in this swift-corelibs-foundation does not find any match.
Environment
Xcode: 13.1 (13A1030d)
macOS: 12.0.1 (21A559)
Additional Detail from JIRA
md5: 911cf49fbf22b16394d76bb3858ac67a
Issue Description:
try Int("15,000,000,000,000,000,123", format: .number)
crashes with:
error: Execution was interrupted, reason: EXC_BAD_INSTRUCTION (code=EXC_I386_INVOP, subcode=0x0).
You can just paste it into a playground to see.
The text was updated successfully, but these errors were encountered: