You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PR #51 added several concurrency issues that makes this package not compile in Swift 6 mode. The problem manifest around the ConsentDocumentExport actor. In its current design in requires the PDFDocument to cross isolation boundaries which is not possible as the type is not Sendable. The PDFDocument is an open class and therefore cannot be Sendable by definition.
Generally
Reproduction
Just compile the package, ideally with the latest Xcode 16 release.
Expected behavior
SpeziOnboarding should be compatible with Swift 6.
Additional context
Non-sendable types can cross actor boundaries, if they are passed as sending parameters. A solution to this problem might need to investigate new language features of the Swift 6 toolchain.
Code of Conduct
I agree to follow this project's Code of Conduct and Contributing Guidelines
The text was updated successfully, but these errors were encountered:
Description
The PR #51 added several concurrency issues that makes this package not compile in Swift 6 mode. The problem manifest around the
ConsentDocumentExport
actor. In its current design in requires thePDFDocument
to cross isolation boundaries which is not possible as the type is notSendable
. ThePDFDocument
is an open class and therefore cannot beSendable
by definition.Generally
Reproduction
Just compile the package, ideally with the latest Xcode 16 release.
Expected behavior
SpeziOnboarding should be compatible with Swift 6.
Additional context
Non-sendable types can cross actor boundaries, if they are passed as
sending
parameters. A solution to this problem might need to investigate new language features of the Swift 6 toolchain.Code of Conduct
The text was updated successfully, but these errors were encountered: