ld: library not found for -lz
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: This is driving me crazy, when i try to compile on the simulator, everything is ok, but on the device i got this error: ld: library not found for -lz Command /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/clang failed with exit code 1 Please help me understand the source of the problem: Ld /Users/ZConsulting/Library/Developer/Xcode/DerivedData/Fontenay-sous-Bois-dhlecgdgtoldsadoctkyueriyius/Build/Products/Debug-iphoneos/Fontenay-sous-Bois.app/Fontenay-sous-Bois normal armv7 cd /Users/ZConsulting/Desktop/Fontenay-sous-Bois setenv