ccache in xcode 16

I have a xcode project generated by unity 6

my mac:

my x-code:

It's a simple project but the building time lasted over 10 minutes and I found a page https://discussions.unity.com/t/optimizing-ios-and-macos-build-times-using-ccache/809570

I tried to run ccache in my mac and hope to accelerate the building. I installed ccache in my MAC by brew

I made two script with +x mode

I created a testc folder to verify the script

and it did work. Then I opened the xcode and added CC and CXX to the “Build Settings”

I triggered the building

But it didn’t work, the building used the default compiler.

I had repeated to ask AI about it and cleaned building cache many times, but the problem still exists. Even without any probing executing of the ccache-clang script ( I configured the log file position, so if it has been executed once, there will be some logs)

Could someone help me check if there’s something wrong?

Since you're referencing instructions from Unity on techniques to make this work, you're best off following up with them for help on making this integration of ccache into your workflow work.

ccache in xcode 16
 
 
Q