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

Glibc error when using Cuckoo 2.0.3: Cannot find 'Glibc' in scope #496

Closed
aiKrice opened this issue Jun 2, 2024 · 11 comments
Closed

Glibc error when using Cuckoo 2.0.3: Cannot find 'Glibc' in scope #496

aiKrice opened this issue Jun 2, 2024 · 11 comments

Comments

@aiKrice
Copy link

aiKrice commented Jun 2, 2024

Hello when I tried Cuckoo v2 in alpha, I had the same issue. Now, I want to try again but still face the same issue:

Cannot find 'Glibc' in scope in the XcodeProj Dependency.

So I tried a dummy project, same error so I would like to know if you have any hint ?
I can send my dummy project in attachment if needed.

I really want to use this new version !

@MatyasKriz
Copy link
Collaborator

Hey, I was trying to get more information in that thread, but was unable to do so. Please send the dummy project along with some info about the Xcode you're using as I was unable to reproduce this issue.

@aiKrice
Copy link
Author

aiKrice commented Jun 5, 2024

Hello @MatyasKriz . Please find the test project which has the error in attachment
Chriscukoo.zip

@MatyasKriz
Copy link
Collaborator

Thanks, unfortunately I still don't have access to internet but I'll take a look at this as soon as I can.

@aiKrice
Copy link
Author

aiKrice commented Jun 6, 2024

Alright 👍

@aiKrice
Copy link
Author

aiKrice commented Jun 10, 2024

Up @MatyasKriz

@MatyasKriz
Copy link
Collaborator

Up @MatyasKriz

up?

@aiKrice
Copy link
Author

aiKrice commented Jun 10, 2024

It was to wake up you, if you had the chance to have a look into

@MatyasKriz
Copy link
Collaborator

It was to wake up you, if you had the chance to have a look into

Nope, I still don't have internet set up at home, so I have more pressing issues. However, I'd happily merge a fix for this.

@MatyasKriz
Copy link
Collaborator

MatyasKriz commented Jun 15, 2024

I found out the issue. It's that Xcodeproj is not meant for iOS: tuist/XcodeProj#817

The dependencies are used only for the generator. Not sure why it's trying to compile it for iOS.

@MatyasKriz
Copy link
Collaborator

Okay, so the problem is with the configuration. You aren't supposed to include CuckooGenerator in the project. Only Cuckoo.

And the Cuckoofile.toml is obviously copied from the repository instead of created with the help of README. If you need help, please create an issue. I've fixed it into this:

[modules.Chriscukoo]
imports = ["Foundation"]
testableImports = ["Chriscukoo"]
sources = [
    "Tests/Swift/Source/*.swift",
]
exclude = []
# regex = ""
output = "Tests/Swift/Generated/GeneratedMocks.swift"

[modules.Chriscukoo.options]
glob = true
keepDocumentation = false

[modules.Chriscukoo.xcodeproj]
path = "."
target = "Chriscukoo"

I'll try to make some changes so the configuration file is easier to use either way.

@aiKrice
Copy link
Author

aiKrice commented Jun 16, 2024

Thank you for your feedback, I will take them in account and try again :) Come back to you soon :)

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