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

IOS archive failed

nieyanbing opened this issue · comments

  • cocos2d-x version: 4.0
  • devices test on: MacBook Pro macOS Big Sur
  • Xcode version: Xcode 12.5

Steps to Reproduce:

  1. Compile and run normally in debug mode, whether it is an emulator or a real machine. everything is OK.
  2. when archiving:
    • clang: error: no such file or directory 'xxx/libcocos2d.a' and so on (openal, lua ...)
    • Command LD failed with a nonzero exit code
    • I have checked that Other Linker Flags have normal links to the necessary libraries specified to libcocos2d.a, etc. The same as the debug ones except for the path
    • The inspection found that the *.a files in the ios-build/lib/Release folder are only more than 180 bytes. This size must be wrong. I don’t know why