Skip to content

Xcode 27 Beta Compilation Fix#6949

Merged
fire-at-will merged 2 commits into
mainfrom
xcode-27-beta-fix
Jun 8, 2026
Merged

Xcode 27 Beta Compilation Fix#6949
fire-at-will merged 2 commits into
mainfrom
xcode-27-beta-fix

Conversation

@fire-at-will

@fire-at-will fire-at-will commented Jun 8, 2026

Copy link
Copy Markdown
Contributor

Summary

Fixes an Xcode 27 beta build failure in PaywallColor.swift, and prevents SwiftLint from reporting violations in Xcode-generated asset symbol files.

Description

Fix PaywallColor initializer collision

Xcode 27 reports a build failure in PaywallColor:

Invalid redeclaration of synthesized memberwise 'init(stringRepresentation:)'

The fix moves the private designated initializer into the primary PaywallColor struct declaration. Declaring an initializer in the primary type suppresses memberwise initializer synthesis, avoiding the collision while preserving the existing public API.

Exclude generated asset symbol files from SwiftLint

SwiftLint was recursively scanning the local Xcode build/ directory and reporting errors in generated files such as:

GeneratedAssetSymbols.swift: error: Force Cast Violation
GeneratedAssetSymbols.swift: error: Type Name Violation: _ACResourceInitProtocol

This change excludes generated build output from SwiftLint:

build
**/DerivedSources/GeneratedAssetSymbols.swift

Note

Low Risk
Lint config and internal initializer placement only; no public API or runtime behavior changes.

Overview
Addresses Xcode 27 beta build/lint friction in two places.

SwiftLint now ignores the build tree and Xcode-generated GeneratedAssetSymbols.swift under DerivedSources, so lint does not run on artifacts the new toolchain emits.

PaywallColor moves the private designated init(stringRepresentation:underlyingColor:) from the public-constructors extension into the main struct body. Behavior is unchanged; the reorder satisfies stricter visibility/initialization rules in the beta compiler so paywall color construction still compiles.

Reviewed by Cursor Bugbot for commit 508142c. Bugbot is set up for automated code reviews on this repo. Configure here.

@fire-at-will fire-at-will requested a review from a team as a code owner June 8, 2026 20:33
@fire-at-will fire-at-will added the pr:fix A bug fix label Jun 8, 2026

@aboedo aboedo left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@ajpallares ajpallares left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the quick fix! We've seen similar issues in the past, with other Xcode minor releases. So this makes sense!

Comment thread .swiftlint.yml
Comment on lines +11 to +12
- build
- "**/DerivedSources/GeneratedAssetSymbols.swift"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these diffs needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm getting swiftlint failures in xcode 27 beta 1 due to linting issues in these generated files

@fire-at-will

Copy link
Copy Markdown
Contributor Author

Will merge despite the iOS 15 UI failure, since that test is failing in main

@rickvdl

rickvdl commented Jun 8, 2026

Copy link
Copy Markdown
Member

Just beat me to it haha, thank you! 💪

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

Labels

pr:fix A bug fix

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants