View Full Version : Linker Command Failed With Exit Code 1?

Sep 5, 2012, 12:53 PM
i dont know why i have this error, because the funny thing is, it compiled on my devices last week perfectly.

i read that it might because im missing a framework, but im not missing any, nor did Product->Clean did not work as well as it was suggested

here is the error : ld: library not found for -ldtdev
clang: error: linker command failed with exit code 1 (use -v to see invocation)

i've looked online but cant find a solution

Sep 5, 2012, 02:52 PM
Hmm, missing framework? Did you do a clean archive? removed all old builds? :)
Did you try simulator, or only on iOS device?

Sep 5, 2012, 06:10 PM
Did you add this other linker flag: -ldtdev?

It tells the linker to look for a library file with libdtdev as the root name (libdtdev.o, libdtdev.a, libdtdev.so) etc?

What is that library? Is it in your project? Why can't the linker find it?

In general I prefer to add libraries and frameworks directly to the project, rather than adding the -l flag.