Skip to content
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

Swift 5.4 on macOS-latest doesn't compile #437

Open
adam-fowler opened this issue Jul 17, 2022 · 1 comment
Open

Swift 5.4 on macOS-latest doesn't compile #437

adam-fowler opened this issue Jul 17, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@adam-fowler
Copy link

Describe the bug
If you install Swift5.4 on macos-latest you get the following errors when compiling (regardless of what you are compiling)

/Users/runner/work/soto-core/soto-core: error: manifest parse error(s):
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:2599:50: error: no type named 'Sendable' in module 'Swift'
extension Combine.Subscribers.Completion : Swift.Sendable {}
                                                 ^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:2601:46: error: no type named 'Sendable' in module 'Swift'
extension Combine.Subscribers.Demand : Swift.Sendable {}
                                             ^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:1:1: error: failed to build module 'Combine' from its module interface; the compiler that produced it, 'Apple Swift version 5.5.2 (swiftlang-1300.0.46.202 clang-1300.0.29.30)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.4.3 (swift-5.4.3-RELEASE)'
// swift-interface-format-version: 1.0
^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:2599:50: error: no type named 'Sendable' in module 'Swift'
extension Combine.Subscribers.Completion : Swift.Sendable {}
                                                 ^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:2601:46: error: no type named 'Sendable' in module 'Swift'
extension Combine.Subscribers.Demand : Swift.Sendable {}
                                             ^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:2599:50: error: no type named 'Sendable' in module 'Swift'
extension Combine.Subscribers.Completion : Swift.Sendable {}
                                                 ^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:2601:46: error: no type named 'Sendable' in module 'Swift'
extension Combine.Subscribers.Demand : Swift.Sendable {}
                                             ^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:1:1: error: failed to build module 'Combine' from its module interface; the compiler that produced it, 'Apple Swift version 5.5.2 (swiftlang-1300.0.46.202 clang-1300.0.29.30)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.4.3 (swift-5.4.3-RELEASE)'
// swift-interface-format-version: 1.0
^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:2599:50: error: no type named 'Sendable' in module 'Swift'
extension Combine.Subscribers.Completion : Swift.Sendable {}
                                                 ^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:2601:46: error: no type named 'Sendable' in module 'Swift'
extension Combine.Subscribers.Demand : Swift.Sendable {}
                                             ^
/Applications/Xcode_13.2.1.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/System/Library/Frameworks/Combine.framework/Modules/Combine.swiftmodule/x86_64-apple-macos.swiftinterface:1:1: error: failed to build module 'Combine' from its module interface; the compiler that produced it, 'Apple Swift version 5.5.2 (swiftlang-1300.0.46.202 clang-1300.0.29.30)', may have used features that aren't supported by this compiler, 'Apple Swift version 5.4.3 (swift-5.4.3-RELEASE)'
// swift-interface-format-version: 1.0
^
/Users/runner/work/soto-core/soto-core/Package.swift:16:8: error: failed to build module 'PackageDescription' from its module interface; it may have been damaged or it may have triggered a bug in the Swift compiler when it was produced
import PackageDescription
       ^
Error: Process completed with exit code 1.

Workflow configuration (please complete the following information):

  • Platform: macOS-latest
  • Swift version: 5.4
@adam-fowler adam-fowler added the bug Something isn't working label Jul 17, 2022
@sammous
Copy link

sammous commented Sep 7, 2022

I am having the same issue with swift version 5.3.
No sure why #337 was closed as it seems to be still an ongoing problem.
To have in mind that the official version points to this so it would be wise to update the doc ( swift 5.3 and 5.4 not supported)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants