Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't build with Xcode 13 RC #217

Closed
shuguenot opened this issue Sep 15, 2021 · 2 comments
Closed

Doesn't build with Xcode 13 RC #217

shuguenot opened this issue Sep 15, 2021 · 2 comments

Comments

@shuguenot
Copy link

  • 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
@shuguenot
Copy link
Author

wrong repo, sorry, see yonaskolb/XcodeGen#1127

@Armenm
Copy link
Contributor

Armenm commented Sep 21, 2021

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.

This was referenced Sep 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants