Best practice when updating Xcode on Mac, how should I rebuild headers?

Hi, after updating Xcode, I get the following error in using CmdStan, how should I go about fixing it?

> cat beta_1_build.log
fatal error: file '/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/mach/boolean.h' has been modified since the precompiled header 'stan/src/stan/model/model_header.hpp.gch' was built
note: please rebuild precompiled header 'stan/src/stan/model/model_header.hpp.gch'
1 error generated.
make: *** [/var/folders/rc/_df5n5md3vg8qs3wl_5lk0f80000gn/T/jl_ah5Hyz/beta_1] Error 1

Does running

make clean-all
make build

help maybe?

If not, just remove the prebuilt header file
stan/src/stan/model/model_header.hpp.gch

and build your model again.

2 Likes