Skip to content

fix: resolve SourcePackages path for Xcode 26#256

Merged
mono0926 merged 2 commits into
mono0926:mainfrom
kimjune01:fix/generate-acknowledgements-xcode-26-path
May 14, 2026
Merged

fix: resolve SourcePackages path for Xcode 26#256
mono0926 merged 2 commits into
mono0926:mainfrom
kimjune01:fix/generate-acknowledgements-xcode-26-path

Conversation

@kimjune01

Copy link
Copy Markdown
Contributor

Summary

  • Applies the same lastPathComponent guard from LicensePlistBuildTool (Workaround for SourcePackages directory on Xcode 16.3 #241) to GenerateAcknowledgementsCommand, which was still using the old hard-coded 2-level ascent
  • Replaces appending(component:) with appendingPathComponent(_:) in the build tool plugin for broader macOS SDK compatibility
  • Adds path resolution unit tests covering both old (<=16.2) and new (>=16.3 / Xcode 26) directory layouts for both plugins

Starting from Xcode 16.3, pluginWorkDirectoryURL points to Build/Intermediates.noindex/CommandPluginIntermediates/ instead of SourcePackages/plugins/. The command plugin was not updated in #241 and fails to find packages.

Ref: #251

Test plan

  • swift build passes
  • Path resolution tests validate 4 scenarios (old/new Xcode x command/build tool plugin)
  • Both plugins resolve to SourcePackages/ on old and new Xcode layouts

kimjune01 added 2 commits May 12, 2026 21:09
Validates that both GenerateAcknowledgementsCommand and
LicensePlistBuildTool correctly resolve the SourcePackages directory
from pluginWorkDirectoryURL on both old Xcode (<=16.2) and new
Xcode (>=16.3 / Xcode 26) directory layouts.

Ref: mono0926#251
@mono0926 mono0926 merged commit 52ab213 into mono0926:main May 14, 2026
2 checks passed
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.

2 participants