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

[Cuckoo 2.0.10] version: No such file or directory #526

Open
wei-addepar opened this issue Dec 6, 2024 · 2 comments
Open

[Cuckoo 2.0.10] version: No such file or directory #526

wei-addepar opened this issue Dec 6, 2024 · 2 comments

Comments

@wei-addepar
Copy link

Hi,
I have been using Cuckoo 1.x for many months now and I'm very thankful for this great library.
However, I couldn't get Cuckoo 2.0.10 to work.

Migrated the content originally in the build phase script itself to the Cuckoofile.toml file

[modules.MyProject]
output = "MyProjectTests/Mocks/GeneratedMocks.swift"
testableImports = ["MyProject", "Framework1", "Framework2"]
sources = [
    "MyProject/Folder1/File1.swift",   <- file contains protocol to mock, not test file
    "MyProject/Folder1/File2.swift",   <- file contains protocol to mock, not test file
    "MyProject/Folder2/File1.swift"   <- file contains protocol to mock, not test file
]

[modules.MyProject.options]
keepDocumentation = false
protocolsOnly = true

However, when trying to build the test target, I get the following error:

/Users/myusername/MyProjectRoot/Pods/Cuckoo/run: line 89: version: No such file or directory

Have I missed any other configuration? Appreciate your help.

@wei-addepar wei-addepar changed the title version: No such file or directory [Cuckoo 2.0.10] version: No such file or directory Dec 6, 2024
@wei-addepar
Copy link
Author

Well, interestingly, the mocks were actually still generated despite of the error message.

@MatyasKriz
Copy link
Collaborator

Hi! It's probably not communicated well enough, but you need to replace your run script as well, it's been overhauled for Cuckoo 2 for syncing version of generator to runtime.

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