cocos2d-x
cocos2d-x copied to clipboard
IOS archive failed
- cocos2d-x version: 4.0
- devices test on: MacBook Pro macOS Big Sur
- Xcode version: Xcode 12.5
Steps to Reproduce:
- Compile and run normally in debug mode, whether it is an emulator or a real machine. everything is OK.
- 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