-
Notifications
You must be signed in to change notification settings - Fork 216
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
command not found swift-format #502
Comments
What commands did you use to install |
I've used these commands |
After entering your @stackotter command and trying to enter |
Hm had a feeling that might happen with my naive copy-to-path solution. You can installing it with Mint or replacing your command with the following (temporarily):
I'm interested why adding it to your path didn't work though, try running the following commands. Make sure to replace
The first removes the You may need to restart Xcode for that to work. |
Sure, thx for the help @stackotter But the command swift-format stillt doesn't work By mint, did you mean this project? Is this a general problem or just in my case? |
If you run Mint is the only tool that I know of for installing Swift command line tools from source. There was talk about adding a |
Unfortunatly the command |
Yeah that's strange, something weird is going on with your path. My only ideas for why that might be are: you're not using zsh (common on older macos versions), your terminal isn't causing Hopefully your teamleader can help solve the issue, they should have more luck given they have access to the device 👍 |
I'm having the same issue with XC 14.2. Other devs on my team using 14.1 have no issues with |
I'm not sure what's causing the issues in the previous versions, but you may want to try out the just-released 508.0.0 version. It no longer depends on (I don't control the Brew distribution, so you'd have to install it by downloading the release sources here and building them with |
@Kuro7070, you should double check your The crux of your problem is that your freshly-compiled executable isn't visible to your $PATH. Adding it to your I would've put into my |
@allevato thanks! 508.0.0 version is working for me! |
Hi guys, I tried again yesterday and now it works. I don't know why the command to change the bin folder didn't work for me the first time. And thank you for your help guys :) |
After installing swift-format through my console, it cant find the command swift-format. Same for xcode.
If I install it with brew, it works but you can't change the version and I want it to install about the official way.
What could be my problem?
That's my code in the xcode buildphase
if which swift-format >/dev/null; then swift-format lint -r -p --configuration formatConfig.json "${PROJECT_DIR}/ChatApp" else echo "warning: swift-format not installed" fi
The text was updated successfully, but these errors were encountered: