marmelroy / PhoneNumberKit

A Swift framework for parsing, formatting and validating international phone numbers. Inspired by Google's libphonenumber.
MIT License
5.16k stars 824 forks source link

V3.7.6 Compilation error : value of optional type 'NSRegularExpression?' must be unwrapped to refer to member 'firstMatch' of wrapped base type 'NSRegularExpression' #728

Closed NishanthMurugan closed 12 months ago

NishanthMurugan commented 12 months ago

App failed to compile with latest version 3.7.6 with following error

PhoneNumberKit/PartialFormatter.swift:205:22: value of optional type 'NSRegularExpression?' must be unwrapped to refer to member 'firstMatch' of wrapped base type 'NSRegularExpression'

Screenshot 2023-12-07 at 7 50 35 PM

Please help to fix it.

NishanthMurugan commented 12 months ago

Changed swift version to 5 as a fix