SystemTrayIconComponent - menu extra icon not shown in release build

When running my project via Xcode in debug mode my menu extra icon and dropdown appears and works fine in the top right corner of the menu bar.

However when I do a release build and run my app standalone the app appears to launch ok - and via logging I can tell exactly the same code is being called to set up the menu extras icon etc… BUT… the menu extra icon doesn’t display.

Any reason why this should work in Xcode debug but not in release ?