CEWendel / SWTableViewCell

An easy-to-use UITableViewCell subclass that implements a swippable content view which exposes utility buttons (similar to iOS 7 Mail Application)
MIT License
7.13k stars 1.27k forks source link

Apple Mach-O Linker Error #210

Open chickenorbeef opened 10 years ago

chickenorbeef commented 10 years ago

Never seen this before, I get the issue right after pasting the SWTableViewCell group into my preexisting project.

duplicate symbol _main in: /Users/ryan/Library/Developer/Xcode/DerivedData/test-ehcdylpgtwqrghbxnandnnxnwxbl/Build/Intermediates/test.build/Debug-iphoneos/test.build/Objects-normal/arm64/main-B1ABE6FAF51C168C.o /Users/ryan/Library/Developer/Xcode/DerivedData/test-ehcdylpgtwqrghbxnandnnxnwxbl/Build/Intermediates/test.build/Debug-iphoneos/test.build/Objects-normal/arm64/main-CA1A75F0BFAFE69F.o

ld: 1 duplicate symbol for architecture arm64 clang: error: linker command failed with exit code 1 (use -v to see invocation)

johncblandii commented 10 years ago

It means you have the same code in there twice.

chickenorbeef commented 10 years ago

John - thanks. I'll have to figure out a way to find duplicate code in my project. Any good tips on how to do this efficiently? I don't think I've run into this problem before.

CEWendel commented 10 years ago

Did you do a clean build?

Sent from my iPhone

On Jul 31, 2014, at 9:29 AM, Ryanalam notifications@github.com wrote:

John - thanks. I'll have to figure out a way to find duplicate code in my project. Any good tips on how to do this efficiently? I don't think I've run into this problem before.

— Reply to this email directly or view it on GitHub.

chickenorbeef commented 10 years ago

Hey CEWendel - I just tried building the SWTableViewCell project on its own straight out of the box. After cleaning it in Xcode, the build is still failing. What am I failing to do? Maybe there's something obvious I'm missing. Thanks for any tips.

chickenorbeef commented 10 years ago

Alright, I Cmd+Option+Shift+K'd the SWTableViewCell project and it was able to run independently without giving me the error I've described above. I still can't get it to run within my preexisting project though. Is there something special I need to do to import it properly?

higginator commented 9 years ago

When you installed the podfile, did you see this?

I had a similar issue and added $(inherited) to a new line in my Target's -> Build Settings -> Linking -> Other Linker Flags section to get it running.