Brightify / Cuckoo

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

Cuckoo need XCTest.framework in link binary with Libraries section. otherwise it shows error that is "cannot find 'XCTFail' in scope" in MockManager.swift file #469

Closed LieonShelly closed 10 months ago

LieonShelly commented 1 year ago

here is how to reproduce this issue

I integrated this framework with tuist. pls help to check, thx

截屏2023-06-05 18 45 23

success with XCTest.framework

截屏2023-06-05 18 39 28

fail without XCTest.framework

截屏2023-06-05 18 39 10
MatyasKriz commented 1 year ago

Hey there, are you sure you're using Cuckoo in a unit test target? Because SPM is supported for quite some time and there haven't been any complaints of this nature so far unless it was added to the wrong target.

You can find our dependency on XCTest in the Project.swift manifest, I'm not sure why anything else would be necessary, what Xcode version are you using?