I can't find cktool... can anyone help?

Hi hive mind,

I have Xcode Beta 4 and I've been trying to use the "cktool" development tool for command line interaction with CloudKit, but for whatever reason when I follow the video from WWDC21-10118, xcrun cannot find cktool.

HAs anyone managed to run the tool as yet? I am assuming not, because there are no questions about cktool in the forum as far as I can tell.

Or.... it just works and I'm doing something dumb.

Either way some assistance would be great, especially from our friends in Apple.

Answered by in 683390022

It is possible to have multiple Xcode installations on your machine, please confirm that you have switched to use Xcode 13.

First, verify your default Xcode path from Terminal:

xcode-select -p
/Applications/Xcode.app/Contents/Developer

cktool should live under that installation directory, in the /usr/bin directory:

/Applications/Xcode.app/Contents/Developer/user/bin/cktool

If you have installed Xcode 13 into a different location--such as /Applications/XcodeBeta.app, switch it using xcode-select:

sudo xcode-select -s /Applications/XcodeBeta.app

Then xcrun cktool should work.

Pease post back how it goes.

Accepted Answer

It is possible to have multiple Xcode installations on your machine, please confirm that you have switched to use Xcode 13.

First, verify your default Xcode path from Terminal:

xcode-select -p
/Applications/Xcode.app/Contents/Developer

cktool should live under that installation directory, in the /usr/bin directory:

/Applications/Xcode.app/Contents/Developer/user/bin/cktool

If you have installed Xcode 13 into a different location--such as /Applications/XcodeBeta.app, switch it using xcode-select:

sudo xcode-select -s /Applications/XcodeBeta.app

Then xcrun cktool should work.

Pease post back how it goes.

/Applications/Xcode-beta.app/Contents/Developer/usr/bin/cktool

Perfect - thank you that worked!

Just for interest, my path was a little different:

xcode-select -p /Library/Developer/CommandLineTools

and then

sudo xcode-select -s /Applications/Xcode-beta.app

I can't find cktool... can anyone help?
 
 
Q