ggerganov / whisper.cpp

Port of OpenAI's Whisper model in C/C++
MIT License
35.9k stars 3.66k forks source link

coremlc not found #770

Open Hans-han opened 1 year ago

Hans-han commented 1 year ago

I cloned the code to local and get cormel-small downloaded but failed to make it

I get this error :unable to find utility "coremlc", not a developer tool or in PATH when I run ./models/generate-coreml-model.sh small

I have Xcode command line tools installed.

Maybe it's the path issue. But I don't know how to fix it

neurostar commented 1 year ago

I was able to resolve by sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

ml2s commented 1 year ago

In order to switch to Xcode.app, you obviously have to install the Xcode, not just Xcode command line. Stupid me!

facundocabrera commented 1 year ago

Installing Xcode from the App Store fixes the problem. Thanks for sharing!

2a588 commented 1 year ago

Installing Xcode from the App Store fixes the problem. Thanks for sharing!

2a588 commented 1 year ago

install xcode, and open xcode bin foulder open these path make sure can find
coreml in
/Applications/Xcode.app/Contents/Developer/usr/bin path

pudepiedj commented 1 year ago

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

I found that despite having XCode installed, refusing to reinstall, and with nothing to update from the App Store, I still needed this additional trick before the xcrun: error: coremlc not a developer tool or in PATH disappeared and everything worked when I ran ./models/generate-coreml-model.sh base.en

ahmetkca commented 9 months ago

sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

I found that despite having XCode installed, refusing to reinstall, and with nothing to update from the App Store, I still needed this additional trick before the xcrun: error: coremlc not a developer tool or in PATH disappeared and everything worked when I ran ./models/generate-coreml-model.sh base.en

Would this cause any problem in the future with Xcode?

xandramax commented 6 months ago

Would this cause any problem in the future with Xcode?

I instead ran sudo xcode-select -r to reset to the default command line tools path. Afterward I ran xcode-select -p and found that the path had been reset to /Applications/Xcode.app/Contents/Developer when it was previously /Library/Developer/CommandLineTools

S1M0N38 commented 2 days ago

I was able to resolve by sudo xcode-select --switch /Applications/Xcode.app/Contents/Developer

If you have installed Xcode Beta it's

sudo xcode-select --switch /Applications/Xcode-beta.app/Contents/Developer