whisper.cpp icon indicating copy to clipboard operation
whisper.cpp copied to clipboard

coremlc not found

Open Hans-han opened this issue 1 year ago • 8 comments

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

Hans-han avatar Apr 16 '23 06:04 Hans-han

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

neurostar avatar Apr 16 '23 16:04 neurostar

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

ml2s avatar Apr 18 '23 06:04 ml2s

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

facundocabrera avatar Apr 25 '23 18:04 facundocabrera

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

2a588 avatar May 15 '23 07:05 2a588

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

2a588 avatar May 15 '23 07:05 2a588

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

pudepiedj avatar Sep 06 '23 11:09 pudepiedj

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?

ahmetkca avatar Feb 28 '24 19:02 ahmetkca

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

xandramax avatar May 09 '24 11:05 xandramax