【发布时间】:2019-09-23 14:17:33
【问题描述】:
请看附件图片。在 Xcode 11 中,Cocos2d-x 给出错误:Argument value 10880 is outside the valid range [0, 255] btVector3.h
代码行出错
y = bt_splat_ps(y, 0x80); // in file btVector3.h
【问题讨论】:
标签: ios xcode cocos2d-x ios13 xcode11
请看附件图片。在 Xcode 11 中,Cocos2d-x 给出错误:Argument value 10880 is outside the valid range [0, 255] btVector3.h
代码行出错
y = bt_splat_ps(y, 0x80); // in file btVector3.h
【问题讨论】:
标签: ios xcode cocos2d-x ios13 xcode11
本论坛建议的临时解决方案:https://discuss.cocos2d-x.org/t/xcode-11-ios-13-cocos-not-running/46825
在 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)
这解决了编译错误。等待 Cocos2d 团队的有效修复:-
【讨论】: