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

Warning: SwiftGen not installed, download it from https://github.com/SwiftGen/SwiftGen #1122

Open
czaio11 opened this issue May 12, 2024 · 1 comment

Comments

@czaio11
Copy link

czaio11 commented May 12, 2024

Hello, I have this script that runs SwiftGen every time it runs, and this build has the following code:
if which swiftgen >/dev/null; then
swiftgen
else
echo "warning: SwiftGen not installed, download it from https://github.com/SwiftGen/SwiftGen"
fi
However, it never enters the IF statement and always gives the error in the ELSE statement. However, SwiftGen is indeed installed and I have checked and modified this code multiple times with the same result. Can anyone help me? I installed it using Homebrew and have reinstalled it, but the problem persists. When I run it in the terminal, it works fine, but not in the Xcode build.

@artemkrachulov
Copy link

@czaio11 the same thing appeared for me. Command in the terminal works, but script doesn't.

SwiftGen not installed, download it from https://github.com/SwiftGen/SwiftGen

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