cocos2d-x 2.x必须升级到2.26才能通过appstore对64bit支持的验证

标题有点唬人,但如果还在用2.x的朋友,升级到2.26是有必要的。因为luajit不支持64bit,因此在ios 64bit上只能用lua,不能用luajit了。cocos2d-x2.26为此专门将3.x上的lua加密移植了过来。详细可以看这里:http://www.cocos2d-x.org/news/386

顺便帖一下32bit和64bit的不一样

Integer data type

ILP32 size

ILP32 alignment

LP64 size

LP64 alignment

char

1 byte

1 byte

1 byte

1 byte

BOOLbool

1 byte

1 byte

1 byte

1 byte

short

2 bytes

2 bytes

2 bytes

2 bytes

int

4 bytes

4 bytes

4 bytes

4 bytes

long

4 bytes

4 bytes

8 bytes

8 bytes

long long

8 bytes

4 bytes

8 bytes

8 bytes

pointer

4 bytes

4 bytes

8 bytes

8 bytes

size_t

4 bytes

4 bytes

8 bytes

8 bytes

time_t

4 bytes

4 bytes

8 bytes

8 bytes

NSInteger

4 bytes

4 bytes

8 bytes

8 bytes

CFIndex

4 bytes

4 bytes

8 bytes

8 bytes

fpos_t

8 bytes

4 bytes

8 bytes

8 bytes

off_t

8 bytes

4 bytes

8 bytes

8 bytes


Floating-point type

ILP32 size

LP64 size

float

4 bytes

4 bytes

double

8 bytes

8 bytes

CGFloat

4 bytes

8 bytes

如果项目已经在用低于2.26版本的,可以参考一下这篇文章,手动升级来支持2.26
http://blog.csdn.net/forza2121/article/details/43280847

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值