Skip to content

Fix duplicate availability macros in Tuist projects - #1002

Draft
Kyle-Ye wants to merge 1 commit into
mainfrom
optimize/ui_fix
Draft

Fix duplicate availability macros in Tuist projects#1002
Kyle-Ye wants to merge 1 commit into
mainfrom
optimize/ui_fix

Conversation

@Kyle-Ye

@Kyle-Ye Kyle-Ye commented Aug 16, 2026

Copy link
Copy Markdown
Member

Summary

  • Keep -index-ignore-system-modules unconditional for Tuist-generated projects.
  • Document why applying a platform condition reintroduces duplicated Swift settings.

Why

Tuist emits both base and macOS SDK-specific OTHER_SWIFT_FLAGS when this setting is platform-conditioned. The SDK-specific entry inherits and repeats the shared flags, causing Swift 6.3 to receive each availability macro definition twice.

Validation

  • Verified the generated Xcode project no longer contains an SDK-conditioned Swift flags entry.
  • Verified availability macros appear once for both macOS and iOS targets.
  • Verified the macOS UI test targets build and link with Xcode 26.6.

Kyle-Ye commented Aug 16, 2026

Copy link
Copy Markdown
Member Author

/uitest update

@github-actions github-actions Bot added area: tooling Developer tooling, package manifests, Tuist, scripts, formatting, or release tooling. type: build Build system, packaging, toolchain, release, or compiler support. labels Aug 16, 2026
@codecov

codecov Bot commented Aug 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 15.35%. Comparing base (0dfa923) to head (72ed60b).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1002   +/-   ##
=======================================
  Coverage   15.35%   15.35%           
=======================================
  Files         702      702           
  Lines       50398    50398           
=======================================
+ Hits         7737     7738    +1     
+ Misses      42661    42660    -1     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: tooling Developer tooling, package manifests, Tuist, scripts, formatting, or release tooling. type: build Build system, packaging, toolchain, release, or compiler support.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant