PhoneNumberKit icon indicating copy to clipboard operation
PhoneNumberKit copied to clipboard

Bug Value of optional type 'NSRegularExpression?' must be unwrapped

Open TCslapete opened this issue 1 year ago • 1 comments

Hello,

Thanks for your lib, but last version contain an error which does not allow the project to be built.

New Issue Checklist

Actual result

Error : Value of optional type 'NSRegularExpression?' must be unwrapped to refer to member 'firstMatch' of wrapped base type 'NSRegularExpression' Chain the optional using '?' to access member 'firstMatch' only for non-'nil' base values Force-unwrap using '!' to abort execution if the optional value contains 'nil'

Capture

Environment

Build iOS project with Xcode 15.1 on iPhone 15 pro iOS 17.0.1 with Cocoapods PhoneNumberKit v3.7.6

TCslapete avatar Dec 15 '23 09:12 TCslapete

Hey @TCslapete

Some days ago someone open an issue with the same description, but turns out that the Swift version used was not 5.

Could you check which Swift version are you using?

bguidolim avatar Dec 15 '23 10:12 bguidolim

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Feb 14 '24 03:02 github-actions[bot]