Open kylescf2 opened 1 year ago
@PatriceJiang please take a look
As cocos supports iOS 11+, so should compile with iOS 11.
@bluesky013 Please consider recomplie lib glslang. Considering that 3.8.1 is ready to release, postpone this issue to the next version.
Cocos Creator version
3.6.2, 3.6.3, 3.7.0
System information
iOS 12
Issue description
We find that glslang libs used by Cocos engine are build on iOS 14.5. We make a static library with version 3.6.2 engine code, and encounter crashes on startup with iOS 12 devices. We revolve the problem by compiling the glslang source code (version 11.5) with iOS 12.0. So we expect Cocos team can update the libs compatible for iOS 12.0.
For details, we find the Symbol "_chkstk_darwin" is in libMachineIndependent.a(glslangtab.cpp.o)). When compiled with deployment target iOS 12.0, chkstk_darwin is not shown. We use some command tools below to find symbols.
lipo libMachineIndependent.a -thin arm64 -output arm.a
ar -x arm.a
nm -g glslang_tab.cpp.o > nm2.txt
Relevant error log output
Xcode output when launching app: dyld: Symbol not found: ___chkstk_darwin Referenced from: /var/containers/Bundle/Application/165B679C-82B1-45A1-A4E6-DC084E7F9626/Runner.app/Runner Expected in: /usr/lib/libSystem.B.dylib in /var/containers/Bundle/Application/165B679C-82B1-45A1-A4E6-DC084E7F9626/Runner.app/Runner
Steps to reproduce
Steps to show the Xcode warning:
Showing All Messages, Filtering for "_tab". Object file (/Applications/CocosCreator/Creator/3.6.2/CocosCreator.app/Contents/Resources/resources/3d/engine/native/external/ios/libs/glslang/libMachineIndependent.a(glslang_tab.cpp.o)) was built for newer iOS version (14.5) than being linked (12.0)
Minimal reproduction project
No response