# 원문 URL : https://discuss.cocos2d-x.org/t/how-to-add-libz-and-libiconv/55989/4
# 에러 내용
clang: error: no such file or directory: ‘/usr/lib/libz.dylib’
clang: error: no such file or directory: ‘/usr/lib/libiconv.dylib’
#
I did read that post, and did add those lines, but adding them by itself didn’t seem to do anything. The same error show up:
clang: error: no such file or directory: ‘/usr/lib/libz.dylib’
clang: error: no such file or directory: ‘/usr/lib/libiconv.dylib’
The only way I have found to make them go away is by manually adding -lz and -liconv flags, which is why I was asking. I am using the simulator, and that thread seems to indicate it works only for device builds…
Can you please post your CMakeLists.txt file ?