Linker command failed with exit code 1

Discussion in 'iPhone/iPad Programming' started by adildacoolset, Feb 13, 2013.

  1. macrumors 65816

    Joined:
    Sep 5, 2011
    Location:
    Lusaka, Zambia(If you know where it is)
    #1
    So, I'm trying to compile this project. What's happening is that I'm getting this error code:
    Code:
    ld: 6 duplicate symbols for architecture i386
    clang: error: linker command failed with exit code 1 (use -v to see invocation)
    No I checked if there were any duplicates in the compile sources section. There was nothing.

    And in the class which I had added, I had imported the .h file. Please help me.
     
  2. macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #2
    The duplicate symbol error should show the symbols that have been duplicated.

    This can happen by something like this

    #import "MyViewController.m"

    At any rate. Show the full error message.
     
  3. thread starter macrumors 65816

    Joined:
    Sep 5, 2011
    Location:
    Lusaka, Zambia(If you know where it is)
    #3
    Never mind. I looked at the full error message. Turns out I was importing a folder too many times. Thanks for the assistance!
     

Share This Page