Skip to content

fix(ci): build a SwiftPM step once more on CYLTabBarController-Swift module race - #48

Merged
ChenYilong merged 1 commit into
masterfrom
claude/bold-planck-flioee
Dec 3, 2026
Merged

ChenYilong merged 1 commit into
masterfrom
claude/bold-planck-flioee

Conversation

@ChenYilong

Copy link
Copy Markdown
Owner

What

scripts/spm-build.sh runs each xcodebuild step (library, Example-SPM, remote-URL consumer) through a new run_step, which builds the step once more only when its log has Unable to resolve module dependency: 'CYLUtilsObjC'. Every other failure fails at once; the first log stays in build/spm-<step>.first.log.

Why

The SwiftPM build job fails now and then on any branch (PR #47 run 46975770890, 82a42dfc run 46886461286) while the same code passes on master (run 46889139161). The cause is in CYLTabBarController-Swift 1.100.1: its target CYLAnimatedItemSwift declares no dependencies but imports CYLUtilsKit (which needs CYLUtilsObjC), so when xcodebuild compiles it first the build stops. The real fix is dependencies: ["CYLUtilsKit", "CYLUtilsObjC"] on that target upstream; the retry can go then.

Checks

  • The retry logic was run with a stub xcodebuild: the race passes on the second run, another error is not retried, a permanent race fails after one retry.
  • Not run with Xcode or shellcheck here (Linux session); the SwiftPM build job of this pull request is the first real run.

Generated by Claude Code

…t's module race

CYLAnimatedItemSwift of CYLTabBarController-Swift 1.100.1 declares no dependencies but imports
CYLUtilsKit, so xcodebuild sometimes compiles it before the CYLUtilsObjC module exists ("Unable to
resolve module dependency"); the same commit passes on master. spm-build.sh builds a step once more
when its log has exactly that error, and fails at once on any other.

By @ChenYilong <luohanchenyilong@163.com>

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RdzYwpnDCT4cUL2KUvuZVC
@ChenYilong
ChenYilong merged commit 5da2db6 into master Dec 3, 2026
24 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