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

Cannot find 'XCT...' in scope #17

Open
rgal75 opened this issue Jan 23, 2024 · 2 comments
Open

Cannot find 'XCT...' in scope #17

rgal75 opened this issue Jan 23, 2024 · 2 comments

Comments

@rgal75
Copy link

rgal75 commented Jan 23, 2024

I added ViewControllerPresentationSpy as an SPM dependency.

When building the unit test target I am getting

Cannot find 'XCTFail' in scope

  • Macro 'XCTFail' unavailable: function like macros not supported

compile time errors in AlertVerifier, DismissalVerifier, e.t.c. wherever an XCT... function is used.

Could you, please help me understand what could cause there errors?

Thanks in advance.

PS.: I am using Nimble, as well. It uses the XCT... functions, too and I do not get these compile-time errors with it.

@jonreid
Copy link
Owner

jonreid commented Jun 26, 2024

Apologies, I didn't see your issue until just now.

Is it possible for you to share your code with me? Feel free to email me.

@jonreid
Copy link
Owner

jonreid commented Jun 26, 2024

You can also compare against the SwiftSamplePackage in this repo.

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