Can't compile asset catalog when including iMessage App Icon asset

I'm trying to add an iMessage extension to my app, and upon adding the iMessage App Icon set, I ran into an issue with one specific icon size: 1024x768px, aka 1x 1024x768pt.

When I remove this one icon from the icon set, it compiles and runs fine, however I can't push it to the App Store as I get the error: "Asset validation failed. Missing Image Asset. Your app is missing the Large App Icon asset 'AppIcon' in 'Payload/Runner.app/PlugIns/MessagesExtension.appex'." I'm assuming this refers to 1024x768px, as this size placeholder appears upon adding a New Messages Extension Icon to my assets folder, and 1024x1024 is already included and compiles fine with it.

However, when I add the 1024x768 icon, and try to run the app, I get the error: "Command CompileAssetCatalog failed with a nonzero exit code"

The app icon's filename is correct, it is exactly 1024x768 px, and my contents.json correctly includes : { "filename" : "AppIcon_1024x768.png", "idiom" : "ios-marketing", "platform" : "ios", "scale" : "1x", "size" : "1024x768" } as is the same format for all of my other icons that work.

Why am I running into this issue upon inclusion of this one required size? How do I fix it?

Are you using 1 universal asset catalog or separate ones for each target?

I have a similar issue with the app icons for an Apple Watch app. I have two targets:

  • App target (iOS and macOS)
  • Watch Target

and two separate Asset catalogs for the targets.

In App target I have the AppIcon as all sizes (macOS, iOS and watchOS).

In Watch target I have AppIcon as single size (1024x1024, watchOS only) (That's what I believe https://developer.apple.com/tutorials/swiftui/creating-a-watchos-app have on step 7.)

When building the app for a real iOS device using Run in Xcode the Watch target build fails with "Command CompileAssetCatalog failed with a nonzero exit code" with this approach.

Removing the watchOS single size 1024x1024 image from it's Asset catalog in AppIcon without removing the AppIcon set and still have the watchOS single size (but without image, just empty) fixes the issue and the build succeeds.

I'm using Xcode Cloud, and building with the image in the watchOS Asset catalog doesn't fail, and you can sue the build for TestFlight, but trying with archive fails with the same error as running the project in Xcode.

Xcode 15.4 macOS 14.3.1

Can't compile asset catalog when including iMessage App Icon asset
 
 
Q