yonaskolb / Mint

A package manager that installs and runs executable Swift packages

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Doesn't build with Xcode 13 RC

shuguenot opened this issue · comments

  • 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

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.