Does the app ask you to enable access the microphone when you start it? If not, you need to add the microphone entitlement. If you use CMake, add MICROPHONE_PERMISSION_ENABLED TRUE to the juce_add_plugin() options. In Projucer you need to enable the microphone in the Xcode exporter options.
The issue is fixed the solution was to add firstly the --deep extra signing flag and to set the environment variable IDEPreferedLoggingStreaming to yes
Although I’ve never seen it cause issues in practice Apples recommendation is to not use this flag. Instead if you have nested bundles that need signing they should be signed inside out. That means the most nested bundles should be signed first, then their parent bundles, and so on until the most outer bundle is signed.
That being said you’ve not mentioned anything about nested bundles up to this point so I’m surprised that was your issue. In regards to IDEPreferedLoggingStreaming I can’t say I’ve ever come across is and a quick google produces zero results for me.
It might be worth checking the DemoRunner, you should see that it asks for microphone permissions when it launches.