Repository navigation
build: Restore the generated AUv2 Info.plist on every build - #2
Closed
johnmatter wants to merge 1 commit into
Closed
johnmatter wants to merge 1 commit into
johnmatter wants to merge 1 commit into
Conversation
johnmatter
marked this pull request as draft
September 29, 2026 18:21
johnmatter
force-pushed
the
fix/auv2-plist-build-output
branch
from
September 29, 2026 19:25
b98d5ab to
fbadd36
Compare
johnmatter
force-pushed
the
fix/auv2-plist-build-output
branch
3 times, most recently
from
September 30, 2026 18:59
69ceae2 to
dd23afa
Compare
johnmatter
force-pushed
the
fix/auv2-plist-build-output
branch
from
September 30, 2026 19:03
dd23afa to
a0af163
Compare
Author
|
opened as free-audio#579 so we can keep our |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
context
Info.plistis written at build time by the build helper (auv2_Info.plist). It carries theAudioComponentsarray a host needs to register the AU.BUNDLE Truewith noMACOSX_BUNDLE_INFO_PLIST, so CMake also writes its own default plist (CFBundlePackageType = APPL, noAudioComponents) into the same bundle.PRE_BUILDcopy (cmake/wrap_auv2.cmake, removed here), which runs only when the AU target relinks.ProcessInfoPlistFileruns after thePRE_BUILDcopy and before signing, and writes the default plist into the bundle.cmakefor any reason, build again, install. The installed AU has noAudioComponents, andauval -vfails withCannot get Component's Name strings/-50/didn't find the component. That looks like a signing or AU-cache problem, which is what makes it expensive.what this changes
cmake/wrap_auv2.cmake: the build helper's plist becomes a tracked build input on every generator, instead of a copy that runs only on a relink.XCODE_ATTRIBUTE_INFOPLIST_FILEpoints at the build helper'sauv2_Info.plist, so Xcode processes the real plist itself, ahead of its signing step. ThePRE_BUILDcopy is gone.$<TARGET_BUNDLE_CONTENT_DIR>and touches a per-config stamp. The stamp depends on the build helper's plist.LINK_DEPENDS, so a restore relinks the AU.POST_BUILDsteps that patch or sign the bundle run again, and the signature covers the restored plist.$<TARGET_BUNDLE_CONTENT_DIR:…>depends back on the AU target in projects whose policy level predatesCMP0112(e.g.cmake_minimum_required(VERSION 3.15)), which is a dependency cycle.before this PR
cmake <builddir>→ build printsno work to do, and the bundle's plist has noAudioComponents.after this PR
restoring the generated Info.plistand relinks the AU.AudioComponentsis back, and the build after that is a no-op.AudioComponentssurvives the reconfigure and the rebuild.tests
tests/clap-macos-embedded(-DCLAP_WRAPPER_BUILD_TESTS=ON), Release, macOS, in two runs:AudioComponents. After it, both keep it.POST_BUILD, same sequence on Ninja Multi-Config and Xcode:AudioComponentsmissing andcodesign --verify --strictfailing (invalid Info.plist).codesign --verify --strictpassing.auval -vpassed.tests/clap-macos-embeddedcan fail with exit 139: the build helper runs before the embedded CLAP finishes linking. It also fails on unmodifiedmain, so it's unrelated to this change, and it's left for a separate fix.