Cuckoo: Many errors generating code with Xcode 9

SWXMLHash.XMLIndexer:72:22: error: invalid redeclaration of 'Element'
Carthage/Checkouts/Cuckoo/Generator/.build/checkouts/FileKit.git-2495357206000708207/Sources/FileSystemWatcher.swift:38:64: error: C function pointer signature '(ConstFSEventStreamRef, UnsafeMutableRawPointer?, Int, UnsafeMutableRawPointer, UnsafePointer<FSEventStreamEventFlags>?, UnsafePointer<FSEventStreamEventId>?) -> Void' (aka '(OpaquePointer, Optional<UnsafeMutableRawPointer>, Int, UnsafeMutableRawPointer, Optional<UnsafePointer<UInt32>>, Optional<UnsafePointer<UInt64>>) -> ()') is not compatible with expected type 'FSEventStreamCallback' (aka '@convention(c) (OpaquePointer, Optional<UnsafeMutableRawPointer>, Int, UnsafeMutableRawPointer, UnsafePointer<UInt32>, UnsafePointer<UInt64>) -> ()')
error: terminated(1): /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift-build-tool -f /Users/ben/Development/Projects/[redacted]/[redacted]/Carthage/Checkouts/Cuckoo/Generator/.build/debug.yaml main
xargs: /Users/ben/Development/Projects/[redacted]/[redacted]/Carthage/Checkouts/Cuckoo/Generator/.build/debug/cuckoo_generator: No such file or directory

Is this a known issue?

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

There are a lot of dependencies that need to be updated in the Package.swift spec.

I’m working on my own branch right now and have gotten pretty far - the tools and framework compile.

That said, the generated mocks are not correct for the new closure changes in Swift 4.0 so I’m working through that.

seeing this error:

Cuckoo/Tests/Generated/GeneratedMocks.swift:544:31: Cannot invoke 'call' with an argument list of type '(String, parameters: (String, ((String) -> Void)?), original: ((String, ((String) -> Void)?) -> ())?)'

Here’s more on the closure changes, and some really concerning issues around it: https://lists.swift.org/pipermail/swift-evolution-announce/2017-June/000386.html (and if you really want to go down the rabbit hole: https://lists.swift.org/pipermail/swift-evolution/Week-of-Mon-20170522/036844.html )

cc: @TadeasKriz @FilipDolnik @nxtstep

@gsheld Version 0.10.0 is out! Huge thanks to @kaosdg for this release!

@gsheld Yes, a new release is coming tomorrow.

@bsarrazin I’m just doing a review of this PR and it will be merged after I review it. Switch to Sourcery will not be immediate I’m affraid.