Xcode 15 fails to build when image set contains emoji in name

My project contains an asset catalog with images that have emojis in their name. When trying to build in Xcode 15.0 beta (15A5160n) and 'Generate Asset Symbols' enabled the compiler crashes.

Example error:

error: 'ï' is not a valid digit in integer literal
static let 0️⃣Flat = ImageResource(name: "0️⃣_flat", bundle: resourceBundle)

As a general rule, when you see a regression like this in a beta release of Xcode, you should file a bug with the details. If you do file a bug, please post your bug number, just for the record.

Having said that, I strongly recommend that you stick to ASCII characters for bundled resource names. See this post as to why.

Share and Enjoy

Quinn “The Eskimo!” @ Developer Technical Support @ Apple
let myEmail = "eskimo" + "1" + "@" + "apple.com"

Xcode 15 fails to build when image set contains emoji in name
 
 
Q