cocos2d / cocos2d-x

Cocos2d-x is a suite of open-source, cross-platform, game-development tools utilized by millions of developers across the globe. Its core has evolved to serve as the foundation for Cocos Creator 1.x & 2.x.

Home Page:https://www.cocos.com/en/cocos2d-x

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

lua_open() Thread 1: EXC_BAD_ACCESS

nghichtu91 opened this issue · comments

  • cocos2d-x version: 4.0
  • devices test on: iOS simulator
  • developing environments
    • NDK version:
    • Xcode version: 12.4
    • VS version:
    • browser type and version:

Steps to Reproduce:

i build successfly with xcode, my app install iOS simulator(iPhone 8, 13.0), but i have issue in image.
Screen Shot 2021-04-04 at 11 07 40

  • cocos2d-x version: 4.0
  • devices test on: iOS simulator(iOS 14 Pro)
  • developing environments
    • NDK version:
    • Xcode version: 14.0 (14A309)
    • VS version:
    • browser type and version:
  • Steps to Reproduce:
    • settings and build success cocos2d-x 4.0
    • select simulator iOS 14 Pro, build success
    • run on this device
    • ERROR: lua_open() EXC_BAD_ACCESS

yes, i have the same issues.
I found old issues like this in [#17043].
This seems like a problem, but the version is too old and I tried to use that luajit.a to solve always, and did failed. The error is:

libluajit.a(lj_vm.o), building for iOS Simulator, but linking in object file built for macOS, file 'libluajit.a' for architecture x86_64

Any ideas

found solution, download new version for luajit.a and replace. Build and run on simulator success.