-
-
Notifications
You must be signed in to change notification settings - Fork 57k
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Summary
I've been building Clawdis with Xcode 26 beta (Swift 6.2.3) and encountered several compatibility issues. I've created fixes and wanted to check if you're interested in Swift 6 forward-compatibility contributions.
Issues Found
1. Real Bug Fix (affects all versions)
CLAuthorizationStatus.authorizedWhenInUseis referenced in location permission code but never existed on macOS - it's iOS only. Xcode 16 didn't catch this, but Xcode 26 does.
2. Swift 6 Strict Concurrency
WizardStartResult,WizardNextResult,WizardStatusResultneedSendableconformanceCLLocationManagerDelegatemethods neednonisolatedattribute withTask { @MainActor in }wrapperwithTimeoutgeneric needsSendableconstraint
3. Swift 6 Initialization Rules
AppState.initproperty initialization order needs adjustment- Removed
deinitthat accessed MainActor-isolated properties
4. Xcode 26 Compiler Workarounds
- Deeply nested closures in SwiftUI
@ViewBuildercause compiler crashes - extracted to separate functions - Some computed properties need explicit
@ViewBuilderattribute
Proposed PRs
If you're interested, I can submit:
- PR 1: Bug fix for
authorizedWhenInUse(small, safe for all Xcode versions) - PR 2: Swift 6 compatibility changes (forward-compatible, works on Xcode 16 too)
Let me know if this would be useful!
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working