Brightify / Cuckoo

Boilerplate-free mocking framework for Swift!
MIT License
1.67k stars 175 forks source link

Add support for concurrency mocking #410

Closed ailtonvivaz closed 2 years ago

ailtonvivaz commented 2 years ago

This PR implements support for parsing async methods and closures as discussed in #407

MatyasKriz commented 2 years ago

I've merged this into master, but I can't seem to be able to build it with the current values in the @available attribute, Xcode keeps suggesting to raise them. I'll update Xcode to the latest version and try again.

ailtonvivaz commented 2 years ago

I've merged this into master, but I can't seem to be able to build it with the current values in the @available attribute, Xcode keeps suggesting to raise them. I'll update Xcode to the latest version and try again.

Maybe your Xcode version is below 13.2. Before this, concurrency was supported just for iOS15+. https://developer.apple.com/documentation/xcode-release-notes/xcode-13_2-release-notes

Updating to the new Xcode, you'll get this feature.

MatyasKriz commented 2 years ago

Yeah, I googled around and arrived to the same conclusion. 🙂 And it really is compilable with 13.2.1, so I've released it as 1.6.0. 🙂 Thank you again for this great pull request!