Failed to build Godot for Mac osx

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By att

Hi,
I checked the latest engine code and build it on my MacBook Pro (macOS Mojave 10.14.2 Beta), but failed with following error,

Checking for C header file mntent.h… (cached) no
scons: done reading SConscript files.
scons: Building targets …
[ 2%] Compiling ==> platform/osx/crash_handler_osx.mm
clang: warning: no such sysroot directory: ‘b/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk’ [-Wmissing-sysroot]
In file included from platform/osx/crash_handler_osx.mm:31:
In file included from ./core/project_settings.h:34:
In file included from ./core/object.h:34:
In file included from ./core/hash_map.h:34:
In file included from ./core/error_macros.h:34:
In file included from ./core/typedefs.h:40:
platform/osx/platform_config.h:31:10: fatal error: ‘alloca.h’ file not found
#include <alloca.h>
^~~~~~~~~~
1 error generated.
scons: *** [platform/osx/crash_handler_osx.osx.tools.64.o] Error 1
scons: building terminated because of errors.