yonaskolb / Mint

A package manager that installs and runs executable Swift packages
MIT License
2.26k stars 122 forks source link

Doesn't build with Xcode 13 RC #217

Closed shuguenot closed 2 years ago

shuguenot commented 2 years ago
'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
shuguenot commented 2 years ago

wrong repo, sorry, see https://github.com/yonaskolb/XcodeGen/issues/1127

Armenm commented 2 years ago

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.