amplitude / amplitude/Amplitude-iOS

When will Swift 6 be supported?

Aperta
#505 2 commenti 11 reazioni 0 assegnatari Vedi su GitHub
question
Lingua principale
Objective-C
Stelle
328
Fork
194
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.