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
SwiftGen Errors on Swift 6 #1110
Comments
Can confirm generated Images and Sounds also have issues.
|
The same is true for
|
One option is to create your own stencil template for generating assets, like this one: Potential Swift-6 Stencil template
This will change the generated Since these will all be defined in an enum like so: public enum Asset {
static let myColor = ColorAsset(name: "...")
static let myColor2 = ColorAsset(name: "...")
// etc
} the |
any update or intension to fix this ? |
Just opened this PR #1119 , should cover at least assets part |
SwiftGen has multiple errors with concurrency in Swift 6. Specifically, all of the Storyboard functions result in the following error:
Call to main actor-isolated initializer 'init(name:bundle:)' in a synchronous nonisolated context.
In order to replicate Swift 6, you can turn on "Complete" strict concurrency checking in Build Settings and see the errors.
This will make SwiftGen unusable when Swift 6 is released. Please update SwiftGen to conform to the concurrency checks introduced in Swift 6.
The text was updated successfully, but these errors were encountered: