Discussion Forums  >  Xcode, Errors, Installing, Configuring

Replies: 7    Views: 1969

Shacksy
Apple Fan
Profile
Posts: 33
Reg: Sep 07, 2011
Faversham
1,980
12/17/12 03:34 PM (13 years ago)

ld: 18 duplicate symbols for architecture i386

I have just downloaded my source code and tried to run my iOS quiz app on the simulator but have received a 1 error as follows: ld: 18 duplicate symbols for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation) Has anyone else come across this issue? I have tried changing the architectures to armv6 and armv7 but ths has not worked. Any help would be much appreciated. Cheers
 
PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
like
12/17/12 03:46 PM (13 years ago)
Hi Shacksy, The error says you have duplicate files in your project. Look for those duplicate files and delete them: could be classes, images, frameworks. Here's a good article about your issue: http://stackoverflow.com/questions/2264455/iphone-duplicate-symbol-error Hope this helps. Best Regards, Danny
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
12/17/12 05:58 PM (13 years ago)
Hi Shacks, Let me know if you've still got issues and i'll try and help when I get a minute. Are you on 1.5 or 2? Cheers mate.
 
Shacksy
Apple Fan
Profile
Posts: 33
Reg: Sep 07, 2011
Faversham
1,980
like
12/18/12 12:36 AM (13 years ago)
Danny Cheers for the link. I will have another go tonight when I get in from work. Alex I'm using version 2. Never seen this error before. Need to look at it again tonight. Probably something simple but after a day of compTIA training my brain is frazzled. Have a good one mate
 
theMonster
Code is Art
Profile
Posts: 435
Reg: Oct 18, 2011
US
8,050
like
12/18/12 12:49 AM (13 years ago)
Correct me if I'm mistaken, but I believe you also get this error when your files are imported twice or a file of a file imports a file, that is already imported.
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
12/18/12 03:50 AM (13 years ago)
That's what I thought, a duplication of files, maybe plugins?
 
Shacksy
Apple Fan
Profile
Posts: 33
Reg: Sep 07, 2011
Faversham
1,980
like
12/19/12 01:39 AM (13 years ago)
Deleted the downloaded source code, closed Xcode, restarted my mac, downloaded the source code again and hey presto........it worked. Should of tried this from the start. Have a great Christmas everyone.
 
Alex@TM
Apple Fan
Profile
Posts: 956
Reg: Dec 20, 2011
London, UK
10,560
like
12/19/12 12:32 PM (13 years ago)
Good old Xcode! It ran so much better pre Xcode 4 when Xcode and ib were separate. What us the quiz mate, give us a clue?!
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.