AUv3 recent "Failed to find component with type..." frequent issues

I've been generating new Audio Unit Extension apps with Xcode 16 (and newer), and although they generally work initially, it is easy (although I'm not sure how to do it reliably) to cause the app to no longer be able to instantiate the audiounit. Generally the call to AVAudioUnit.findComponent fails and SimplePlayEngine hits the fatalError("Failed to find component with type...")

In the most recent project, merely adding files to the extension (without making any use of them) caused it to go off the rails.

If I "Archive" the app+plugin, there is no audio unit extension in the bundle.

If I switch to the audiounit extension and build it it's fine. If I look at the build folder in Library/Developer/Xcode/project_folder the extension_name.appex is there.

Any ideas? If I can coax an unmodified audio unit extension project to exhibit this behavior I'll attach it here. Right now what I have has code I don't want to share.

i have this behaviour in a completely erratic fashion. Even newly created AU FX plugins get me this error, without me changing anything at all. it used to work, but now it doesnt. clearing caches and build folders doesnt change the error. in general, the compilation experience has been extremely fragile, trying to code an AUv3 plugin. It's not inspiring a lot of confidence in the toolchain...

AUv3 recent "Failed to find component with type..." frequent issues
 
 
Q