Skip to content

Fix compilation for Xcode 26.4: illegal operator syntax#2137

Open
ntnmrndn wants to merge 1 commit into
TextureGroup:masterfrom
ntnmrndn:xcode_26_4
Open

Fix compilation for Xcode 26.4: illegal operator syntax#2137
ntnmrndn wants to merge 1 commit into
TextureGroup:masterfrom
ntnmrndn:xcode_26_4

Conversation

@ntnmrndn

@ntnmrndn ntnmrndn commented Mar 6, 2026

Copy link
Copy Markdown

Context: Original code is non defined behavior, went from warning to error with Xcode 26.4

Resolve #2136

  • Fix Xcode 26.4 compilation
  • Attempt to follow original intent (CC @Adlai-Holler)

@CLAassistant

CLAassistant commented Mar 6, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@ntnmrndn ntnmrndn changed the title Xcode 26.4: Fix build Fix compilation for Xcode 26.4: illegal ternary syntax Mar 18, 2026
@ntnmrndn ntnmrndn changed the title Fix compilation for Xcode 26.4: illegal ternary syntax Fix compilation for Xcode 26.4: illegal operator syntax Mar 24, 2026
@cjuneja

cjuneja commented Apr 23, 2026

Copy link
Copy Markdown

hi there! Any ETA on when this fix will be merged.

Xcode 26.4 and Xcode 26.4.1 both have the same issue.

@PhoenixDeveloper

Copy link
Copy Markdown

Any movement?

@Adlai-Holler

Copy link
Copy Markdown
Member

FWIW code was adapted from here so that might provide good reference. I would be generally very careful about changing the logic — if we just need to fix the build I’d recommend changing the ternary condition to, for example, right == YES or whatever it is the compiler is complaining about surgically. Sorry I havent looked at the specific build issue but I’m guessing it’s a type coercion/syntax issue and we should leave the logic alone. https://github.com/ibireme/YYText/blob/7bd2aa41414736f6451241725778509fe75860b5/YYText/Component/YYTextLayout.m#L1508

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.

Build broken with Xcode 26.4

5 participants