Skip to content

Fix Mac CI linking after SDK bump: rewrite ITK's hardcoded SDK .tbd paths#2571

Merged
akenmorris merged 1 commit into
masterfrom
amorris/mac-ci-libiconv-fix
Jul 1, 2026
Merged

Fix Mac CI linking after SDK bump: rewrite ITK's hardcoded SDK .tbd paths#2571
akenmorris merged 1 commit into
masterfrom
amorris/mac-ci-libiconv-fix

Conversation

@akenmorris

@akenmorris akenmorris commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

ITK's exported CMake targets hardcode absolute paths to macOS SDK stub libraries (libiconv.tbd, libm.tbd) in INTERFACE_LINK_LIBRARIES. The dependency install is cached keyed on the dependency-script hashes, so a runner Xcode/SDK bump leaves those absolute paths dangling and every Mac target that links ITK fails with "No rule to make target .../libiconv.tbd".

Add fix_mac_dependency_paths.sh to rewrite SDK-versioned system-library .tbd paths to -l flags, and run it in both Mac workflows after the dependency cache step (per-run, so it does not invalidate the cache).

…aths

ITK's exported CMake targets hardcode absolute paths to macOS SDK stub
libraries (libiconv.tbd, libm.tbd) in INTERFACE_LINK_LIBRARIES. The
dependency install is cached keyed on the dependency-script hashes, so a
runner Xcode/SDK bump leaves those absolute paths dangling and every Mac
target that links ITK fails with "No rule to make target .../libiconv.tbd".

Add fix_mac_dependency_paths.sh to rewrite SDK-versioned system-library
.tbd paths to -l flags, and run it in both Mac workflows after the
dependency cache step (per-run, so it does not invalidate the cache).

Fixes #2570
@akenmorris akenmorris force-pushed the amorris/mac-ci-libiconv-fix branch from faa1564 to 0106a72 Compare July 1, 2026 14:14
@akenmorris akenmorris merged commit ca838f3 into master Jul 1, 2026
5 checks passed
@akenmorris akenmorris deleted the amorris/mac-ci-libiconv-fix branch July 1, 2026 17:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant