What should I do to support both iOS armv7 and arm64? two version of luajit code?


I am building game using cocos2d-x 3.3 + lua. (luajit actually)

since lua encryption is not secure enough, so I would like to use luajit for sure.

I’ve been testing my game using luajit 32bit version and only compile with 32bit arch for iOS.

now my game is ready to go online, I need to support arm64 in order to get onto AppStore.

I did some research and found that cocos2d-x v3.6 seems support this:

" [NEW] Lua-binding: used luajit arm64 version on iOS 64-bit devices"

but after digging into the code, I didn’t found anything related with 64bit support. only that libluajit.a file seems packaged with luajit 64bit inside.

so that means, I need to package my source code with 32bit and 64bit version by myself?
and load the different code based on arch?

didn’t the latest version of cocos2d-x do this for the developer?


hi bro, I also faced the same question. I am confused that whether do I need to use different code for different device. If this is true, that is to bad and I dont know how to judge which code to use on 32bit and 64bit device.