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

Fix sourceRootURL #820

Closed m-sugawara closed 1 year ago

m-sugawara commented 1 year ago

R.swift cannot find .rswiftignore for a project that isn't made by xcodeproj but Package.swift.

It is because that SOURCE_ROOT environment variable doesn't exist when a project is build with Package.swift and currently the source code references ./SOURCE_ROOT literally.

issue: #819

tomlokhorst commented 1 year ago

Thanks! This seems like a good fix. Will be in the next release.