custom keyboard crash only on release build

I have built a custom keyboard and it is working perfectly fine on debug build both on device and on simulator, but when I install the release build either through test flight or through xcode, the keyboard always crash on start. Shown below are the crash log that I grabbed from the console, I can't seem to figure out what is the problem. Can someone help me on what might be the problem here? How should I debug this kind of problem.


default 00:41:01.084374 -0800 ReportCrash Trying to create CR directory structure as root
default 00:41:01.094965 -0800 ReportCrash cr_update: <private>
default 00:41:01.095021 -0800 ReportCrash cr_update: <private>
default 00:41:01.099177 -0800 ReportCrash Formulating report for corpse[34112] StormKey
default 00:41:01.100610 -0800 ReportCrash notify_register_check() failed with error 1000000
default 00:41:01.108832 -0800 ReportCrash report not saved because it is non-actionable (ie: extension hangs or internal-only)
custom keyboard crash only on release build
 
 
Q