mac-cain13 / R.swift

Strong typed, autocompleted resources like images, fonts and segues in Swift projects
MIT License
9.5k stars 764 forks source link

ColorResource conflicts with new API in Xcode 15 #832

Closed arkichek closed 1 year ago

arkichek commented 1 year ago

I can't build a project due to duplicate symbols caused by the new API https://developer.apple.com/documentation/developertoolssupport/colorresource

tomlokhorst commented 1 year ago

The generated code in R.swift always uses fully qualified names and should always use the prefix “RswiftResources”.

In my own project I only had a single error where I had in my code: let myImage: ImageResource = R.image.myImage

Changing it to this, fixed my issue: let myImage: RswiftResources.ImageResource = R.image.myImage

What code are you seeing that is causing an error?

arkichek commented 1 year ago

It was an attempt to build with an old library version