-
Notifications
You must be signed in to change notification settings - Fork 766
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Generates invalid code when you have 0 resources #827
Comments
Now that I think about it, this is probably caused by the fact that SPM doesn't generate the |
So, did you fix this? |
Just created an empty project with R.swift and I think this now "just works". I don't get any errors with R.swift 7.5.0. Let me know if I'm overlooking something. |
This issue occurs when integrating Rswift in an SPM package, not in an Xcode project. When targeting SPM packages, Rswift uses |
It looks like r.swift generates invalid code if you have 0 resources for it to parse. That will currently result in the following
R.swift.generated
file;which causes the following build error;
Adding a single Localizable.strings resource (for example) immediately solves the issue.
The text was updated successfully, but these errors were encountered: