Cocos2dx error argument value 10880 fix

Cocos2dx error argument value 10880 fix

Cocos2dx error argument value 10880 fix 1024 450 New_bluecreazione

There has been a strange Xcode error which has been causing lot of issues lately. Here is a fix to that.

When building your Xcode project for Cocos2dx, you would encounter an error which would say “Argument value 10880 is outside the valid range [0, 255] btVector3.h“. Till Cocos2dx team fixes this issue in their next update after 3.17.2, here is a quick fix.

Find the below Line in the btVector3.h file,

#define BT_SHUFFLE(x,y,z,w) ((w)<<6 | (z)<<4 | (y)<<2 | (x))

Replace the above line with below line,

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

That’s it, this should temporarily fix the issue.

Below is the reference for this post,

https://discuss.cocos2d-x.org/t/xcode-11-ios-13-cocos-not-running/46825