apple / swift-cluster-membership

Distributed Membership Protocol implementations in Swift
https://apple.github.io/swift-cluster-membership/
Apache License 2.0
201 stars 20 forks source link

main doesn't compile on Xcode beta 5 #89

Closed dnadoba closed 2 years ago

dnadoba commented 2 years ago

Expected behavior

Latest main compiles and runs tests fine with latest Xcode 14 Seed.

Actual behavior

Building for debugging...
/Users/davidnadoba/Repositories/swift-cluster-membership/.build/arm64-apple-macosx/debug/SWIM.build/module.modulemap:2:12: error: header '/Users/davidnadoba/Repositories/swift-cluster-membership/.build/arm64-apple-macosx/debug/SWIM.build/SWIM-Swift.h' not found
    header "/Users/davidnadoba/Repositories/swift-cluster-membership/.build/arm64-apple-macosx/debug/SWIM.build/SWIM-Swift.h"
           ^
/Users/davidnadoba/Repositories/swift-cluster-membership/Tests/SWIMTestKit/TestMetrics.swift:32:18: error: could not build Objective-C module 'SWIM'
@testable import SWIM
                 ^
/Users/davidnadoba/Repositories/swift-cluster-membership/.build/arm64-apple-macosx/debug/SWIM.build/module.modulemap:2:12: error: header '/Users/davidnadoba/Repositories/swift-cluster-membership/.build/arm64-apple-macosx/debug/SWIM.build/SWIM-Swift.h' not found
    header "/Users/davidnadoba/Repositories/swift-cluster-membership/.build/arm64-apple-macosx/debug/SWIM.build/SWIM-Swift.h"
           ^
/Users/davidnadoba/Repositories/swift-cluster-membership/Tests/SWIMTestKit/TestMetrics.swift:32:18: error: could not build Objective-C module 'SWIM'
@testable import SWIM
                 ^
/Users/davidnadoba/Repositories/swift-cluster-membership/.build/arm64-apple-macosx/debug/SWIM.build/module.modulemap:2:12: error: header '/Users/davidnadoba/Repositories/swift-cluster-membership/.build/arm64-apple-macosx/debug/SWIM.build/SWIM-Swift.h' not found
    header "/Users/davidnadoba/Repositories/swift-cluster-membership/.build/arm64-apple-macosx/debug/SWIM.build/SWIM-Swift.h"
           ^
/Users/davidnadoba/Repositories/swift-cluster-membership/Tests/SWIMTestKit/TestMetrics.swift:32:18: error: could not build Objective-C module 'SWIM'
@testable import SWIM
                 ^

error: fatalError

Steps to reproduce

git clone git@github.com:apple/swift-cluster-membership.git
cd swift-cluster-membership
swift test

Version/commit hash

latest main 68b2da6afe4491fca3be3f1265a1ee2697f33ff3

Swift & OS version (output of swift --version && uname -a)

Xcode: Version 14.0 beta 5 (14A5294e)

swift-driver version: 1.62.3 Apple Swift version 5.7 (swiftlang-5.7.0.123.8 clang-1400.0.29.50)
Target: arm64-apple-macosx13.0
Darwin Davids-MBP.fritz.box 22.0.0 Darwin Kernel Version 22.0.0: Wed Jul 20 01:53:07 PDT 2022; root:xnu-8792.0.188.141.3~2/DEVELOPMENT_ARM64_T6000 arm64
ktoso commented 2 years ago

Okey very weird... thanks for reporting

ktoso commented 2 years ago

Thanks for reporting, note to self this works fine:

Version 14.0 beta 4 (14A5284h)
swift-driver version: 1.62.1 Apple Swift version 5.7 (swiftlang-5.7.0.123.7 clang-1400.0.29.50)
Target: arm64-apple-macosx13.0

so it's a Swift regression in beta 5 :-\

ktoso commented 2 years ago

Heh funnily enough compiling again makes it work fine

ktoso commented 2 years ago

huh, afterwards even after cleans it worked 🤔

ktoso commented 2 years ago

Undeclared implicit dependencies strike once again 😮‍💨 Fix incoming