Error: `swiftgen.yml` is not a config file
Gob-Lin opened this issue · comments
Hello there. I have installed v 6.6.2 via homebrew and my run script is the following:
`export PATH="$PATH:/opt/homebrew/bin"
if which swiftgen >/dev/null; then
swiftgen
else
"echo: Swiftgen not found"
fi`
However I receive this error:
Error:
swiftgen.ymlis not a config file Usage: swiftgen config run [--config <config>] [--quiet] [--normal] [--verbose] See 'swiftgen config run --help' for more information. Command PhaseScriptExecution failed with a nonzero exit code
Am I doing anything wrong?
Thank you!
Hi mate, try to move .yml to folder which upper one
Hello Lobsterrinho! I tried to move the swiftgen.yml file up one folder, but now I get:
The file “swiftgen.yml” couldn’t be opened because you don’t have permission to view it.
UPDATE: Solved setting ENABLE_USER_SCRIPT_SANDBOXING to false.
check pls what u see in Project -> Build settings -> User Script Sandboxing
If YES, try to switch on NO
Also u can have such error if name of ur project include spaces or hyphens
And try to move .yml in root folder of ur project