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
Tried building on my fresh M4 mac mini but encountered a bunch of issues due to mismatching Swift versions.
Operating System: Sequoia 15.1.1
Xcode: Command Line Tools (/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk)
Apple Swift version 6.0.2 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)
Errors in case they are of any help
swiftc watchid-pam-extension.swift -DSEQUOIASDK -o pam_watchid_x86_64.so -target x86_64-apple-darwin24.1.0 -emit-library
/Library/Developer/CommandLineTools/usr/include/swift/module.modulemap:13:8: error: redefinition of module 'SwiftBridging'
11 | //===----------------------------------------------------------------------===//
12 |
13 | module SwiftBridging {
| `- error: redefinition of module 'SwiftBridging'
14 | header "bridging"
15 |
/Library/Developer/CommandLineTools/usr/include/swift/bridging.modulemap:13:8: note: previously defined here
11 | //===----------------------------------------------------------------------===//
12 |
13 | module SwiftBridging {
| `- note: previously defined here
14 | header "bridging"
15 |
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/Foundation.framework/Modules/Foundation.swiftmodule/x86_64-apple-macos.swiftinterface:5:8: error: failed to build module 'CoreFoun
dation'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.43 clang-1600.0.25.3)', while this compiler is 'Apple Swift version 6.0.2 e
ffective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)'). Please select a toolchain which matches the SDK.
3 | // swift-module-flags: -target x86_64-apple-macos15.1 -target-variant x86_64-apple-ios18.1-macabi -enable-objc-interop -autolink-force-load -enable-library-evolution -module-link-name swiftFoundation
-swift-version 5 -enforce-exclusivity=unchecked -O -library-level api -enable-upcoming-feature InferSendableFromCaptures -enable-bare-slash-regex -user-module-version 3107 -module-name Foundation -package-nam
e "\"FoundationPreview\""
4 | import Combine
5 | import CoreFoundation
| `- error: failed to build module 'CoreFoundation'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.43 clang-1600.0.25
.3)', while this compiler is 'Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)'). Please select a toolchain which matches the SDK.
6 | import Darwin
7 | import Dispatch
/Library/Developer/CommandLineTools/usr/include/swift/module.modulemap: 0:
/Library/Developer/CommandLineTools/usr/include/swift/bridging.modulemap: 0:
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks/LocalAuthentication.framework/Modules/LocalAuthentication.swiftmodule/x86_64-apple-macos.swiftinterface:5:8: error: failed to buil
d module 'Foundation'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.43 clang-1600.0.25.3)', while this compiler is 'Apple Swift v
ersion 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)'). Please select a toolchain which matches the SDK.
3 | // swift-module-flags: -target x86_64-apple-macos15.1 -target-variant x86_64-apple-ios18.1-macabi -enable-objc-interop -enable-library-evolution -swift-version 5 -enforce-exclusivity=checked -O -library-
level api -enable-bare-slash-regex -user-module-version 1656.40.25 -module-name LocalAuthentication
4 | import Combine
5 | import Foundation
| `- error: failed to build module 'Foundation'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.43 clang-1600.0.25.3)', w
hile this compiler is 'Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)'). Please select a toolchain which matches the SDK.
6 | @_exported import LocalAuthentication
7 | import Observation
watchid-pam-extension.swift:1:8: error: failed to build module 'LocalAuthentication'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.
7.43 clang-1600.0.25.3)', while this compiler is 'Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)'). Please select a toolchain which matches the SDK.
1 | import LocalAuthentication
| `- error: failed to build module 'LocalAuthentication'; this SDK is not supported by the compiler (the SDK is built with 'Apple Swift version 6.0 effective-5.10 (swiftlang-6.0.0.7.43 clang-1600.0
.25.3)', while this compiler is 'Apple Swift version 6.0.2 effective-5.10 (swiftlang-6.0.2.1.2 clang-1600.0.26.4)'). Please select a toolchain which matches the SDK.
2 |
3 | // MARK: (Re)define PAM constants here so we don't need to import .h files.
make: *** [all] Error 1
As I have pretty much 0 experience with Swift, I quickly gave up. Instead since I saw the CI was passing, I forked and made the CI upload it's assets, so that I could then download the compiled binaries. Which worked fine (after dequarantining it and almost bricking sudo, thanks Apple).
So, I was wondering if you could do "official" releases and publish pre-compiled binaries there for future me and others with no Swift experience?
Thanks!
The text was updated successfully, but these errors were encountered:
Tried building on my fresh M4 mac mini but encountered a bunch of issues due to mismatching Swift versions.
Errors in case they are of any help
As I have pretty much 0 experience with Swift, I quickly gave up. Instead since I saw the CI was passing, I forked and made the CI upload it's assets, so that I could then download the compiled binaries. Which worked fine (after dequarantining it and almost bricking sudo, thanks Apple).
So, I was wondering if you could do "official" releases and publish pre-compiled binaries there for future me and others with no Swift experience?
Thanks!
The text was updated successfully, but these errors were encountered: