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

.rswiftignore does not work correctly with Swift Package #819

Closed manicmaniac closed 1 year ago

manicmaniac 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.

https://github.com/mac-cain13/R.swift/blob/7.3.0/Sources/rswift/App.swift#L91

tomlokhorst commented 1 year ago

Thanks for the PR, this will be released in the next version.