cocos2d-x icon indicating copy to clipboard operation
cocos2d-x copied to clipboard

lua_open() Thread 1: EXC_BAD_ACCESS

Open nghichtu91 opened this issue 4 years ago • 2 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

nghichtu91 avatar Apr 04 '21 04:04 nghichtu91

  • 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

gjy1606 avatar Sep 19 '22 16:09 gjy1606

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

gjy1606 avatar Sep 19 '22 16:09 gjy1606