Xcode Error when compiling app: -dynamic not specified, -all_load invalid

dynamicxcode

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
-dynamic not specified, -all_load invalid

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
-dynamic not specified the following flags are invalid: -ObjC

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
can't locate file for: -lzbar

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool:
file: -lzbar is not an object file (not allowed in a library) Command

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool
failed with exit code 1

This error is occurring on a sub project while compiling the main project to run. This sub project, opened by itself, will build and run tests just fine.

Best Answer

the zbar lib file was missing.

Related Topic