iOS Command Libtool failed with a nonzero exit code

error: /Users/Carol/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: can't locate file for: -ljpeg

error: /Users/Carol/Downloads/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool: file: -ljpeg is not an object file(not allowed in a library)

Command Libtool failed with a nonzero exit code

Build Setting 中 搜索框中输入 “search”,出现如下画面:


iOS Command Libtool failed with a nonzero exit code_第1张图片

在library 中 添加所需要的库。

但是需要注意的是,如果程序报错显示第三方库有重复的文件,那可能是库文件重复添加了,在上图中删除多余的库

你可能感兴趣的:(iOS Command Libtool failed with a nonzero exit code)