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

前端之家收集整理的这篇文章主要介绍了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的不一样

@H_403_14@

Integer data type

ILP32 size

ILP32 alignment

LP64 size

LP64 alignment

char

1 byte

1 byte

BOOL,bool

short

2 bytes

2 bytes

int

4 bytes

4 bytes

long

8 bytes

8 bytes

long long

8 bytes

pointer

size_t

time_t

NSInteger

CFIndex

fpos_t

off_t

8 bytes


@H_403_14@
Floating-point type

LP64 size

float

double

8 bytes

CGFloat

8 bytes

如果项目已经在用低于2.26版本的,可以参考一下这篇文章,手动升级支持2.26
http://blog.csdn.net/forza2121/article/details/43280847
原文链接:https://www.f2er.com/cocos2dx/343526.html

猜你在找的Cocos2d-x相关文章