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

#if Import condition is not respected #398

Closed
verebes1 opened this issue Aug 19, 2021 · 1 comment
Closed

#if Import condition is not respected #398

verebes1 opened this issue Aug 19, 2021 · 1 comment

Comments

@verebes1
Copy link

We have a framework that has a build condition SWIFT_ACTIVE_COMPILATION_CONDITIONS = APPEXTENSION;
And based on that condition, we are importing the following libraries.

#if APPEXTENSION
import CustomAppExtension
#else
import Custom
#endif

The problem we are facing is that the generated mocks do not have this #if statement. They import both libraries (which causes a build fail)
like below:

import CustomAppExtension
import Custom

Instead, we would require the imports to happen as in the original file:

#if APPEXTENSION
import CustomAppExtension
#else
import Custom
#endif

Would it be possible to update Cuckoo to recognize that #if block?

@MatyasKriz
Copy link
Collaborator

I didn't notice this issue, but there's a new one that supersedes this in case of discussion: #471.

@MatyasKriz MatyasKriz closed this as not planned Won't fix, can't repro, duplicate, stale Jun 24, 2024
@Brightify Brightify locked and limited conversation to collaborators Jun 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants