Doesn't build with Xcode 13 RC
shuguenot opened this issue · comments
Séraphin Huguenot commented
- clone project (master)
- run
swift run xcodegen
'Spectre' /Users/xxx/XcodeGen/.build/checkouts/Spectre: warning: Invalid Exclude '/Users/xxx/XcodeGen/.build/checkouts/Spectre/Sources/Spectre/XCTest@4.swift': File not found.
/Users/xxx/XcodeGen/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Task.swift:286:37: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
defer { argv.forEach { free($0)} }
^
/Users/xxx/XcodeGen/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Task.swift:286:37: note: coalesce using '??' to provide a default when the optional value contains 'nil'
defer { argv.forEach { free($0)} }
^
?? <#default value#>
/Users/xxx/XcodeGen/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Task.swift:286:37: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
defer { argv.forEach { free($0)} }
^
!
/Users/xxx/XcodeGen/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Task.swift:300:55: error: value of optional type 'UnsafeMutablePointer<Int8>?' must be unwrapped to a value of type 'UnsafeMutablePointer<Int8>'
free(UnsafeMutableRawPointer(pair.pointee))
^
/Users/xxx/XcodeGen/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Task.swift:300:55: note: coalesce using '??' to provide a default when the optional value contains 'nil'
free(UnsafeMutableRawPointer(pair.pointee))
^
?? <#default value#>
/Users/xxx/XcodeGen/.build/checkouts/SwiftCLI/Sources/SwiftCLI/Task.swift:300:55: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
free(UnsafeMutableRawPointer(pair.pointee))
^
!
/Users/xxx/XcodeGen/.build/checkouts/PathKit/Sources/PathKit.swift:583:12: error: value of optional type 'UnsafeMutablePointer<CChar>?' (aka 'Optional<UnsafeMutablePointer<Int8>>') must be unwrapped to a value of type 'UnsafeMutablePointer<CChar>' (aka 'UnsafeMutablePointer<Int8>')
free(cPattern)
^
/Users/xxx/XcodeGen/.build/checkouts/PathKit/Sources/PathKit.swift:583:12: note: coalesce using '??' to provide a default when the optional value contains 'nil'
free(cPattern)
^
?? <#default value#>
/Users/xxx/XcodeGen/.build/checkouts/PathKit/Sources/PathKit.swift:583:12: note: force-unwrap using '!' to abort execution if the optional value contains 'nil'
free(cPattern)
^
!
[35/63] Compiling Yams Encoder.swift
error: fatalError
Séraphin Huguenot commented
wrong repo, sorry, see yonaskolb/XcodeGen#1127
Armen Mkrtchian commented
I think it's relevant to this repo as well. Mint still points to SwiftCLI v6.0.0, but the fix is available from https://github.com/jakeheis/SwiftCLI/releases/tag/6.0.3.