You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
So I've just got Xcode 9 and have followed the instructions to convert to swift 4. I'm using 0.10.0 of Cuckoo. Everything is fine except GeneratedMocks.swift has this code in it:
// ["name": "httpClient", "accesibility": "", "@type": "InstanceVariable", "type": "HttpClientProtocol", "isReadOnly": false]
override var httpClient: HttpClientProtocol {
get {
return cuckoo_manager.getter("httpClient", original: observed.map { o in return { () -> HttpClientProtocol in o.httpClient }})
}
set {
cuckoo_manager.setter("httpClient", value: newValue, original: observed != nil ? { self.observed?.httpClient = $0 } : nil)
}
}
Which causes the following error when building:
Invalid conversion from throwing function of type '((Schedule) throws -> _) throws -> _?' to non-throwing function type '((Schedule) throws -> () -> HttpClientProtocol) -> ((()) -> _)?'
Do I need to change my class to prevent this? Or anything else I can do? I don't really get much from that error to be honest! This has worked today but I can't get past this error now, I haven't knowingly changed anything else.
Any advice you can give would be appreciated, let me know if you need any further info.
Many thanks!
The text was updated successfully, but these errors were encountered:
Hi guys,
So I've just got Xcode 9 and have followed the instructions to convert to swift 4. I'm using 0.10.0 of Cuckoo. Everything is fine except GeneratedMocks.swift has this code in it:
Which causes the following error when building:
Do I need to change my class to prevent this? Or anything else I can do? I don't really get much from that error to be honest! This has worked today but I can't get past this error now, I haven't knowingly changed anything else.
Any advice you can give would be appreciated, let me know if you need any further info.
Many thanks!
The text was updated successfully, but these errors were encountered: