- Notifications
You must be signed in to change notification settings - Fork149
Description
Description
While following theGenerating a client in an Xcode project tutorial, I ran into issues at the build step
Main actor-isolated conformance of 'Operations.GetGreeting.AcceptableContentType' to 'CaseIterable' cannot satisfy conformance requirement for a 'Sendable' type parameter 'Self'
After digging around, It seems that the default Swift Compiler build settings for Concurrency have changed in Xcode 26 when creating a new project
Swift Compiler - Concurrency
| Setting | < Xcode 26 | Xcode 26 |
|---|---|---|
| Approachable Concurrency | No | Yes |
| Default Actor Isolation | nonisolated | MainActor |
✅SwitchingDefault Actor Isolation back tononisolated enables the project to build successfully ✅
Reproduction
Follow theGenerating a client in an Xcode project tutorial using Xcode 26, creating a new project
Package version(s)
swift-openapi-generator: 1.10.0
Expected behavior
To build and use a client within an iOS App
Environment
Xcode: Version 26.0 beta 3 (17A5276g)
swift-driver version: 1.127.8 Apple Swift version 6.2 (swiftlang-6.2.0.13.10 clang-1700.3.13.4)
Target: arm64-apple-macosx26.0
Additional information
Found the sameissue reported by@mikaelacaron in a separate thread
cc:@czechboy0