Cuckoo: Carthage/Checkouts/Cuckoo/Generator/Generator.xcodeproj' does not exist.

While trying to run the script to generate mocks I have the following output:

Last login: Mon Aug 21 09:23:01 on ttys001
❯ .../Carthage/Checkouts/Cuckoo/run ; exit;
Script path: .../Carthage/Checkouts/Cuckoo
No Cuckoo Generator found.
~/.../Carthage/Checkouts/Cuckoo ~
Building...
2023-08-21 10:58:19.121 xcodebuild[13395:261289] DVTCoreDeviceEnabledState: DVTCoreDeviceEnabledState_Disabled set via user default (DVTEnableCoreDevice=disabled)
Command line invocation:
    /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild build -project /.../Carthage/Checkouts/Cuckoo/Generator/Generator.xcodeproj -scheme Generator -configuration Release

User defaults from command line:
    IDEPackageSupportUseBuiltinSCM = YES

2023-08-21 10:58:19.133 xcodebuild[13395:261289] Writing error result bundle to /var/folders/4q/8l6wgwmx357ctqpcxg8r9fkw0000gn/T/ResultBundle_2023-21-08_10-58-0019.xcresult
xcodebuild: error: '/.../Carthage/Checkouts/Cuckoo/Generator/Generator.xcodeproj' does not exist.
Build seems to have failed for some reason. Please file an issue on GitHub.

Saving session...completed.
Deleting expired sessions...none found.

[Process completed]

Should this Generator.xcodeproj be generated by the script? It doesn’t exist in your repository either.

MacOS: Ventura 13.5.1 Xcode: 14.3 Swift version: 5.8 I am installing Cuckoo using Carthage github “Brightify/Cuckoo”

This is my script:

if [ "${ENABLE_PREVIEWS}" = "YES" ]; then
  echo "Not running Cuckoo generator during preview builds."
  exit 0
fi

OUTPUT_FILE="${PROJECT_DIR}/${PROJECT_NAME}Tests/outputMocks/GeneratedMocks.swift"
echo "Generated Mocks File = ${OUTPUT_FILE}"

INPUT_DIR="${PROJECT_DIR}/${PROJECT_NAME}"
echo "Mocks Input Directory = ${INPUT_DIR}"

"Carthage/Checkouts/Cuckoo/run" generate --testable "${PROJECT_NAME}" \
--output "${OUTPUT_FILE}" \
"${INPUT_DIR}/NetworkManager.swift" \
"${INPUT_DIR}/Service.swift"

What is the issue here? Thank you in advance.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 2
  • Comments: 20 (7 by maintainers)

Most upvoted comments

Happy to hear that. 🙂

Hello @MatyasKriz i’m encountering the same issue when using cuckoo through SPM. Targeting master solves the issue on my side, would it be possible to make a new version from it ?

Hey, @sashanavruzova. I believe you’re not doing anything wrong. I’ll merge the pull request and you can try the master again, but I’m afraid it will produce the same results.

Your issue may be related to this one – https://github.com/realm/realm-swift/issues/6549

I’ll close this issue and if the timeout still occurs, you can create a new one that concerns the time out so that we and further Carthage users may track progress better.