Cmath issues when building in Xcode (Mac OS)

I followed the instructions on the Wiki exactly and keep getting the following error when building in Xcode.

In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/plugin/waveletturbulence.cpp:20:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/helper/util/vectorbase.h:26:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/general.h:24:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:317:9: error: no member named 'signbit' in the global namespace
using ::signbit;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:318:9: error: no member named 'fpclassify' in the global namespace
using ::fpclassify;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:319:9: error: no member named 'isfinite' in the global namespace; did you mean 'finite'?
using ::isfinite;
      ~~^
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/plugin/waveletturbulence.cpp:20:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/helper/util/vectorbase.h:26:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/general.h:24:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:304:
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:752:12: note: 'finite' declared here
extern int finite(double)
           ^
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/plugin/waveletturbulence.cpp:20:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/helper/util/vectorbase.h:26:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/general.h:24:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:320:9: error: no member named 'isinf' in the global namespace
using ::isinf;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:321:9: error: no member named 'isnan' in the global namespace
using ::isnan;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:322:9: error: no member named 'isnormal' in the global namespace
using ::isnormal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:323:7: error: no member named 'isgreater' in the global namespace; did you mean '::std::greater'?
using ::isgreater;
      ^~
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/plugin/waveletturbulence.cpp:20:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/helper/util/vectorbase.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:504:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:644:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:738:29: note: '::std::greater' declared here
struct _LIBCPP_TEMPLATE_VIS greater : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/plugin/waveletturbulence.cpp:20:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/helper/util/vectorbase.h:26:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/general.h:24:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:324:7: error: no member named 'isgreaterequal' in the global namespace; did you mean '::std::greater_equal'?
using ::isgreaterequal;
      ^~
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/plugin/waveletturbulence.cpp:20:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/helper/util/vectorbase.h:23:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string:504:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/string_view:175:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/__string:57:
In file included from /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/algorithm:644:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:767:29: note: '::std::greater_equal' declared here
struct _LIBCPP_TEMPLATE_VIS greater_equal : binary_function<_Tp, _Tp, bool>
                            ^
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/plugin/waveletturbulence.cpp:20:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/helper/util/vectorbase.h:26:
In file included from /Users/rafa/Dev/blender/extern/mantaflow/preprocessed/general.h:24:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:325:9: error: no member named 'isless' in the global namespace
using ::isless;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:326:9: error: no member named 'islessequal' in the global namespace
using ::islessequal;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:327:9: error: no member named 'islessgreater' in the global namespace
using ::islessgreater;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:328:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/cmath:329:9: error: no member named 'isunordered' in the global namespace
using ::isunordered;
      ~~^
13 errors generated.

Any ideas? Thanks

I seem to have fixed that issue by deleting and reinstalling my command line tools and rebuilding the xcode project

@atartanian Mind sharing what exactly did you delete, and how ?

It didn’t work for me.

Could you try to build after applying this diff https://developer.blender.org/D10838 ?
New build folder would be preferable.