Skip to content

Filter the 76x76@1x iPad icon notice from Xcode 26 actool - #3153

Open
lamcw wants to merge 2 commits into
bazelbuild:mainfrom
lamcw:xcode26-actool-notice-filter
Open

lamcw wants to merge 2 commits into
bazelbuild:mainfrom
lamcw:xcode26-actool-notice-filter

Conversation

@lamcw

@lamcw lamcw commented Nov 25, 2026

Copy link
Copy Markdown

Xcode 26 actool prints the 76x76@1x iPad app icon notice with 4 empty slots after "[1x]" instead of 3:

    [][ipad][76x76][][][1x][][][][]: notice: 76x76@1x app icons only apply to iPad apps targeting releases of iOS prior to 10.0.

The spurious_patterns in actool_filtering expect exactly 3 slots, so they no longer match. The notice is then promoted to an error and the AssetCatalogCompile action fails for any app icon set that has a 76x76@1x iPad icon.

Accept one or more empty slots after "[1x]" in both patterns. The rest of each pattern is unchanged, so other notices are still promoted to errors.

Xcode 26 actool prints the 76x76@1x iPad app icon notice with 4 empty
slots after "[1x]" instead of 3:

```
    [][ipad][76x76][][][1x][][][][]: notice: 76x76@1x app icons only apply to iPad apps targeting releases of iOS prior to 10.0.
```

The `spurious_patterns` in `actool_filtering` expect exactly 3 slots, so
they no longer match. The notice is then promoted to an error and the
`AssetCatalogCompile` action fails for any app icon set that has a
76x76@1x iPad icon.

Accept one or more empty slots after "[1x]" in both patterns. The rest
of each pattern is unchanged, so other notices are still promoted to
errors.
Signed-off-by: Thomas Lam <thomaslam@canva.com>
@adincebic

Copy link
Copy Markdown
Contributor

How does Xcode handle this?

@lamcw

lamcw commented Nov 25, 2026 •

Copy link
Copy Markdown
Author

Xcode treats that actool message as a notice and doesn't fail the build.

With Xcode 26.0 (17A321), a minimal iPad app (deployment target 15.0) whose AppIcon set has only the ipad 76x76 @1x/@2x, 83.5x83.5 @2x and 1024 ios-marketing icons builds with xcodebuild -sdk iphonesimulator build. CompileAssetCatalogVariant prints

…/Assets.xcassets:./AppIcon.appiconset/[][ipad][76x76][][][1x][][][][]: notice: 76x76@1x app icons only apply to iPad apps targeting releases of iOS prior to 10.0.

and the build ends with ** BUILD SUCCEEDED **. Running actool directly on the same catalog (--notices --warnings --errors --platform iphoneos --minimum-deployment-target 15.0 --target-device ipad --app-icon AppIcon) also exits 0.

So this change matches upstream's behavior. On main, rules_apple would've failed because actool_filtering(0, <that stdout>, "") on returns 1 and rewrites the line to error:.

@lamcw

lamcw commented Nov 27, 2026

Copy link
Copy Markdown
Author

Hey @adincebic would this be the right approach to handle the notice string? 🙏 I think this matches with the upstream bahavior pretty well but LMK if you think otherwise

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