Skip to content
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

When will Swift 6 be supported? #505

Open
henryglendening-hh opened this issue Sep 24, 2024 · 0 comments
Open

When will Swift 6 be supported? #505

henryglendening-hh opened this issue Sep 24, 2024 · 0 comments
Labels
question Further information is requested

Comments

@henryglendening-hh
Copy link

Summary

Now that Swift 6 has been publicly released by Apple, my team is migrating our project to keep up with the new language changes.

Following Apple's migration guide, we have enabled the build setting that initially shows Swift 6 errors as warnings while we work through the migration.

Using the latest version of this Amplitude SDK (8.21.0), Xcode shows that the generated Ampli.swift file is not concurrency-safe and will not compile for Swift 6. See screenshot below for context.

For most SDKs, the vendor's source is all contained within its SPM package, and these issues can be mitigated by adding @preconcurrency before an import statement for that library. However, since this SDK generates the Ampli.swift file outside of the SDK and we need to manually add it to our project's source, it needs to be updated to use Swift 6 in order for customers to build their projects without compile errors.

What is the roadmap for adding Swift 6 support to this file?

Screenshot 2024-09-24 at 10 45 20 AM
@henryglendening-hh henryglendening-hh added the question Further information is requested label Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant