flutter_sim_country_code icon indicating copy to clipboard operation
flutter_sim_country_code copied to clipboard

App crashes while selecting +61 Country code

Open nihal-dukka opened this issue 3 years ago • 0 comments

The app crashes on selecting +61 country code in iOS, Attaching the logs for reference.

`warning: libphonenumber_plugin was compiled with optimization - stepping may behave oddly; variables may not be available.

  • thread #1, queue = 'com.apple.main-thread', stop reason = Swift runtime failure: Unexpectedly found nil while implicitly unwrapping an Optional value frame #1: 0x0000000104325d50 libphonenumber_pluginspecialized SwiftLibphonenumberPlugin.getRegionInfo(call=<unavailable>) at SwiftLibphonenumberPlugin.swift:93:50 [opt] 90 do { 91 let p : NBPhoneNumber = try phoneUtils.parse(phoneNumber, defaultRegion: isoCode.uppercased()) 92 -> 93 let regionCode : String = phoneUtils.getRegionCode(for: p) ^ 94 let countryCode : String = p.countryCode.stringValue as String 95 let formattedNumber : String = try phoneUtils.format(p, numberFormat: NBEPhoneNumberFormat.NATIONAL) 96 Target 0: (Runner) stopped.

nihal-dukka avatar Dec 05 '22 14:12 nihal-dukka