Closed andre-alves closed 3 years ago
It still fails with Xcode 13.2.1 (13C100)
, using
swift-driver version: 1.26.21 Apple Swift version 5.5.2 (swiftlang-1300.0.47.5 clang-1300.0.29.30)
Target: arm64-apple-macosx12.0
I'm using it with Xcode 13.2.1 and it's working fine, but I'm still fetching from my fork.
We need to release a new version of SwiftInfo with this diff.
I built my SwiftInfo binary using Xcode 12.5... thanks to module stability I can use it with Xcode 13, but SwiftInfo is falling to build with Xcode 13.
We probably need to merge #78 first, so we can build SwiftInfo using Xcode 13.
Context
When I try to run SwiftInfo with Xcode 13 (Swift 5.5) I receive this error (from its internal
swiftc
invocation):Swift 5.5 uses the new swift-driver by default (which apparently does not support the
-toolchain
arg):We may also have more problems than that.
Runner.swift
uses--driver-mode=swift
which is also not working (does nothing) and breaksInfofile
parsing.Solution (workaround)
Passing
-disallow-use-new-driver
toswiftc
disables the new driver and everything works again. I tested with both Xcode 13 (Swift 5.5) and Xcode 12.5 (Swift 5.4) so it seems retro compatible.We should eventually update to support the new driver, but I think the solution is ok for now.