-2

My app build in flutter I run it in iOS but his crash in first start, this problem only in iOS device in android work fine

enter image description here

I see this error in debug console :

nb_utils/SwiftNbUtilsPlugin.swift:15: Fatal error: Unexpectedly found nil while unwrapping an Optional value

but I can't track where or find the problem

koen
  • 5,383
  • 7
  • 50
  • 89
  • Please provide enough code so others can better understand or reproduce the problem. – Community Aug 05 '23 at 05:04
  • Did you take a look at row 15 in SwiftNbUtilsPlugin.swift? – Joakim Danielson Aug 05 '23 at 06:30
  • No, because no file like this in my project, i build in flutter but this error i think in swift after compileing – AdeL Benfodil Aug 05 '23 at 06:56
  • Well without source code there is no way anyone can answer this for you. Probably not helpful but you could take a look at this question, https://stackoverflow.com/questions/32170456/what-does-fatal-error-unexpectedly-found-nil-while-unwrapping-an-optional-valu – Joakim Danielson Aug 05 '23 at 09:00
  • If it helps, here is `SwiftNbUtilsPlugin.swift`: https://github.com/bhoominn/nb_utils/blob/main/ios/Classes/SwiftNbUtilsPlugin.swift. Line 15 accesses `Bundle` several times, my guess is something in your project missing. – koen Aug 05 '23 at 13:00

0 Answers0