Linker Command Failed With Exit Code 1?

Discussion in 'iOS Programming' started by loon3y, Sep 5, 2012.

  1. loon3y macrumors 65816


    Oct 21, 2011
    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
  2. jnoxx macrumors 65816


    Dec 29, 2010
    Aartselaar // Antwerp // Belgium
    Hmm, missing framework? Did you do a clean archive? removed all old builds? :)
    Did you try simulator, or only on iOS device?
  3. PhoneyDeveloper macrumors 68040


    Sep 2, 2008
    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, 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.

Share This Page