Xcode 12 + Cocos2dx 4.0报错!

运行环境:Xcode 12.0.1、Cocos2dx 4.0、macOS Big Sur 11.0 Beta版(20A5395g)

安装Cocos2dx 4.0之后,打开并运行生成的iOSDevMagicWeapons.xcodeproj文件,出现以下错误:
clang: error: no such file or directory: ‘/usr/lib/libz.dylib’
clang: error: no such file or directory: ‘/usr/lib/libiconv.dylib’
请问如何解决这种问题,macOS Big Sur 系统的/usr/lib/的确没有这些文件,但是也不允许添加这些情况,请问处理处理?

在build settings 里找 linking
把这两个
‘/usr/lib/libz.dylib’
‘/usr/lib/libiconv.dylib’
换成下面那俩地址

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libiconv.dylib

/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/usr/lib/libz.dylib

1赞