-
Notifications
You must be signed in to change notification settings - Fork 8
Swift6 archiving issues #9
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
base: main
Are you sure you want to change the base?
Conversation
- Fix 'let' property initialization in Zip3.swift using self._seq - Fix 'let' property initialization in AllocatedUnfairLock.swift using self.buffer - Remove @inlinable from deinit in Lazy.swift (not allowed in Swift 6) - Remove @inlinable from designated init in Lazy.swift These changes make VGSL 7.3.1 compatible with Swift 6 / Xcode 16.4+
The @inlinable convenience initializers need to call this internal method, which requires @usableFromInline in Swift 6.
This reverts commit ed6195f.
…tion instead of direct assignment to resolve Swift 6 compilation errors in Zip3Sequence and AllocatedUnfairLock.
…pattern with helper initializers to resolve Swift 6 compilation errors in Zip3Sequence and AllocatedUnfairLock.
…pattern to resolve remaining Swift 6 compilation errors in OSInfo, Zip3Sequence.Iterator, and AnyAsyncSequence/Iterator.
|
@morevsavva @lunarstill could you guys help me to review this PR? |
|
Hi. Thanks for this PR. |
|
Hi, thank you for being active and responding to my PR request. We are building SDK but due to nature of protecting our implementation we are distributing our SDK as binary targets and inside SPM that has additional dependencies like DivKit. Our scripts are run on github actions so we rely on xcodebuild to create frameworks and package it as xcframeworks. This is part where we found compilation errors. Weirdly if I am trying to archive in Xcode there are no errors. |
|
Turns out, it's a very complex question. First of all, as Apple Documentation says
VGSL and DivKit are not meant to be distributed that way.
Thats because, explicit passing parameter Second. When you export framework this way - it gets all dependent static libraries inside. You can check that DivKit actually compiled inside NamiPairingFramework binary. And third, as DivKit/VGSL are not meant to distribute as a binary framework you should not expose their types to your public API. Swift now has |
This pull request handle fixes for Swift 6 when archiving the project using
xcodebuild