Swift 6 build error: Static property 'schema' is not concurrency-safe #3891
Labels
bug
Something isn't working
pending-maintainer-response
Issue is pending response from an Amplify team member
transferred
This issue was transferred from another Amplify project
Environment information
Describe the bug
I updated my iOS app from Swift 5 to Swift 6, and the build fails due to this error in the generated +Schema.swift files:
Note that putting @preconcurrency at the top of the generated Schema files suppresses the error, but I'm creating this issue to either add that automatically, or to even better find a way to make schema concurrency-safe.
Reproduction steps
Make any model in Amplify Gen 2 and put it in your Swift 6 Xcode project and try to build it.
The text was updated successfully, but these errors were encountered: