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

Open
verebes1 opened this issue Aug 19, 2021 · 0 comments
Open

#if Import condition is not respected #398

verebes1 opened this issue Aug 19, 2021 · 0 comments

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?

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

Successfully merging a pull request may close this issue.

1 participant