In the meanwhile i can start the standalone in the simulator, but i get following error when i try to load it on a device or if i try to archive:
error: unknown application extension '.appex: expected '.app' or '.ipa'
I see in XCode that the AUv3 project isn’t defined as an extension. The build settings look ok at a first sight but XCode shows the properties of an app in the General panel.
Still trying to migrate a running projucer iOS project to CMake. Is there something i’m missing?
I remember it being difficult to get this “working” initially, and it seems I didn’t completely succeed.
If I generate an AUv3 project via the Projucer and open it in Xcode, I can see that the ‘Mach-O Type’ for the target is “Executable” rather than “Bundle”. If I create a MODULE target I can set XCODE_ATTRIBUTE_MACH_O_TYPE to emulate this behaviour, but then CMake will still (incorrectly?) add -bundle to the linkline for the target, causing the build to fail (bitcode_bundle and bundle can’t both be enabled simultaneously).
I just tried adding the target as an executable target, but setting XCODE_PRODUCT_TYPE com.apple.product-type.app-extension. This seems to generate a working project which builds for both the simulator and for devices. The “General” tab for the AUv3 no longer looks like an exe target. I’m then able to install the app on an iPhone, and I can see+use the app extension in GarageBand.
I’ll push this change, as it seems a bit cleaner than my previous approach. Open to any suggestions for alternative approaches though!