needle icon indicating copy to clipboard operation
needle copied to clipboard

Generated file path requires all directories to exist

Open brentleyjones opened this issue 6 years ago • 0 comments

When invoking the following command:

Carthage/Checkouts/Needle/Generator/bin/needle generate App/Sources/Generated/Needle.swift

needle requires that the Sources and Generated directories exist. This can be an issue when the directory is specifically for generated files and is excluded from source control. Currently we have to run mkdir -p App/Sources/Generated before running needle.

Also, the error that is reported was cryptic, and required running needle attached to a debugger to understand what the actual issue was.

brentleyjones avatar Oct 10 '19 13:10 brentleyjones