Amplitude-iOS
Amplitude-iOS copied to clipboard
When will Swift 6 be supported?
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?