axmolengine / axmol

Axmol Engine – A Multi-platform Engine for Desktop, XBOX (UWP) and Mobile games. (A fork of Cocos2d-x-4.0)
https://axmol.dev
MIT License
922 stars 205 forks source link

Can't start lua project on ios #1712

Closed halx99 closed 8 months ago

halx99 commented 8 months ago
  1. axmol new HelloLua -l lua -d .
  2. cd HelloLua
  3. axmol build -p ios -a arm64 -c
halx99 commented 8 months ago

@bintester sorry i do a mistake delete discuss about this issue

rh101 commented 8 months ago

Deleting these lines from lua-template-default\proj.ios_mac\ios\targets\ios\Info.plist will fix the issue:

<key>NSMainNibFile</key>
<string>MainMenu</string>
<key>NSPrincipalClass</key>
<string>NSApplication</string>

They were introduced in this commit, I'm assuming by accident, because they shouldn't be there: https://github.com/axmolengine/axmol/commit/7f309b75704cfbf1a047180b0bc732d0bcff836c

halx99 commented 8 months ago

A better solution PR #1713 created