After upgrade to macOS Big Sur 11.01 i get the following error:
clang: error: no such file or directory: '/usr/lib/libz.dylib' clang: error: no such file or directory: '/usr/lib/libiconv.dylib' Command Ld failed with a nonzero exit code
How to reproduce: make new cocos2d-x project using:
- cocos -n -d dirname -l cpp
- cd dirname/MyCppGame
- mkdir build-iphone
- cd build-iphone
- cmake .. -GXcode -DCMAKE_SYSTEM_NAME=iOS -DCMAKE_OSX_SYSROOT=iphoneos
Open the generated xcode project (change bundle identifier) and build
Versions:
- macOS Big sur 11.01
- CMake 3.18 or CMake 3.19.0-rc3
- cocos2d-x v4.0
- Xcode 12.2