Xcode generates symbols for image and color assets now (which is super nice!).
We noticed an issue when generating code symbols for our image assets. We have an image named inputContour
and one named inputContourColor
. Xcode was not able to generate a symbol for inputContourColor
and instead produced the following warning:
#warning("The \"inputContourColor\" image asset name resolves to the symbol \"inputContour\" which already exists. Try renaming the asset.")
It turns out that the generator automatically removes the color
suffix when creating the code symbol. For color assets, this probably make sense (so tealColor
would become just teal
), but this should not be applied to image resources.