From dc6b4ee43f076b5e3939490227e57f9c6d2ba1f1 Mon Sep 17 00:00:00 2001 From: reuk Date: Wed, 17 Feb 2021 11:19:04 +0000 Subject: [PATCH] CMake: Update documentation with archiving instructions for AUv3 --- docs/CMake API.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/CMake API.md b/docs/CMake API.md index 18ae4eb69e..7e1ec9b2c4 100644 --- a/docs/CMake API.md +++ b/docs/CMake API.md @@ -143,6 +143,21 @@ If the "Product -> Archive" action isn't working, the following steps may help c XCODE_ATTRIBUTE_SKIP_INSTALL "NO") ``` +To archive an AUv3 plugin, `XCODE_ATTRIBUTE_INSTALL_PATH` must point to the PlugIns directory of the +final app bundle but only for the AUv3 target. In code, that might look like this: + + set_target_properties(my_plugin_Standalone PROPERTIES + XCODE_ATTRIBUTE_INSTALL_PATH "$(LOCAL_APPS_DIR)" + XCODE_ATTRIBUTE_SKIP_INSTALL "NO") + + get_target_property(output_name my_plugin_Standalone OUTPUT_NAME) + + # On iOS, the AUv3 should go in /PlugIns + # On macOS, the AUv3 should go in /Contents/PlugIns + set_target_properties(my_plugin_AUv3 PROPERTIES + XCODE_ATTRIBUTE_INSTALL_PATH "$(LOCAL_APPS_DIR)/${output_name}.app/PlugIns" + XCODE_ATTRIBUTE_SKIP_INSTALL "NO") + ### Building universal binaries for macOS Building universal binaries that will run on both arm64 and x86_64 can be achieved by