-
Notifications
You must be signed in to change notification settings - Fork 764
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
R.swift Fails to Generate Resources for Folders (Xcode 16 default project structure) #913
Comments
Additional Notes: |
We were expecting the last release to include PR #886. In the latest Xcode projects, .xcstrings files have become the new standard, while .strings files are now considered legacy. It would be great to have support for this updated format in R.swift. |
This is a known issue. R.swift currently doesn’t support resources inside Xcode 16 Folders that are synchronized to the file system.
Older projects use Groups (grey icon) instead of Folders (blue icon). Groups do work. As a workaround: You can right click in Xcode and click “Convert to Group”. This turns a folder into an old-style group. Which works with R.swift.
We are working on adding support for Xcode 16 Folders in a future version of R.swift.
|
Thank you for the prompt reply and clarification. I’m looking forward to the future version of R.swift that supports both folders and .xcstrings files. |
I've created an issue explaining the situation and the workaround: #914. Closing this one, in favour of the other one. |
Environment:
Description:
We are experiencing issues with R.swift failing to generate the expected enum values for resources when creating new projects in Xcode 16.0 on macOS Sequoia 15.0. This problem affects multiple users, including myself and others who are being trained in a similar setup.
In new projects made with Xcode 16.0 where we add images, fonts, or strings, the R.generated.swift file does not include the resource-specific enum values. Instead, it remains in a basic template state as shown below:
(Checked from derived data result)
Behavior:
• New Projects: The issue occurs when creating new projects in Xcode 16.0.
• Existing Projects: Interestingly, the issue does not occur when opening and using projects that were created in earlier versions of Xcode.R.swift works as expected and generates all resources enums without issues.
Attempted Workarounds:
• Verified that the resources (images, fonts, and strings) are properly added to the project.
• Cleaned and rebuilt the project.
• Removed the Derived Data folder, but no relevant changes are reflected in R.generated.swift.
Additional Notes:
• We are unable to test this configuration on Xcode 15.4, as it is not compatible with macOS Sequoia 15.0.
Expected Behavior:
R.swift should generate the necessary enum values for resources such as images, fonts, and strings in new projects created in Xcode 16.0, just as it does for projects created in earlier versions.
Steps to Reproduce:
Request:
Is this a known issue with Xcode 16.0 or Sequoia 15.0 compatibility? Are there any suggested workarounds or updates to R.swift that might resolve this?
The text was updated successfully, but these errors were encountered: