akofman / cordova-plugin-dbmeter

:microphone::mega: Cordova plugin to get decibels from the microphone
Apache License 2.0
35 stars 29 forks source link

fatal error: unexpectedly found nil while unwrapping an Optional value (lldb) #6

Closed rapasae closed 6 years ago

rapasae commented 7 years ago

Hello, Thank you for this plugin. It works perfectly on android for me, but i've found a problem wih IOS. I can build my project with Xcode 8.2 without errors, but when I run in debug mode, I get the above message in DBMeter.swift - private func timerCallBack() - In release mode it simply crash.

errorxcode

I got this error after i chnaged build settings optimization to none

because with default values i have this error while bulding:

was compiled with optimization - stepping may behave oddly; variables may not be available

Many thanks for your support

akofman commented 6 years ago

I don't know what's the cause of this issue and I'm not able to reproduce it. Could you have a try with the last version of this plugin and a more recent version of XCode ? I'm closing this issue but do not hesitate to reopen it if you're able to reproduce.