amplitude / amplitude/Amplitude-iOS

When will Swift 6 be supported?

Offen
#505 2 Kommentare 11 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
question
Vorherrschende Sprache
Objective-C
Sterne
328
Forks
194
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

## 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

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.