FCP plugin crashes when launching its app

I'm developing a workflow extension for Final Cut Pro, but I'm encountering a setback. For some reason, the extension crashes if I launch the app that contains the plugin.

I already added some logic to prevent the app from launching if one is already running, but that didn't fix the issue because the plugin crashes while the app is still loading.

It seems to me that the plugin process is being killed while the app is loading, causing the plugin to crash.

Do you know why this is happening and how to solve it?

FCP plugin crashes when launching its app
 
 
Q