cocos2d-x 3.17.2 initial project build failure

With recent Xcode Version 11.3.1 (11C504), newly created cocos2d-x project build can fail with following error:

cocos2d/external/bullet/include/bullet/LinearMath/btVector3.h:330:7: Argument value 10880 is outside the valid range [0, 255]

That’s because the BT_SHUFFLE macro creates a value larger than 255. Thus following code change can resolve the build issue: (cocos2d/external/bullet/include/bullet/LinearMath/btVector3.h)

-#define BT_SHUFFLE(x,y,z,w) ((w)<<6 | (z)<<4 | (y)<<2 | (x))
+#define BT_SHUFFLE(x,y,z,w) (((w)<<6 | (z)<<4 | (y)<<2 | (x)) & 0xff)