Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Pradeep Mittal picture Pradeep Mittal · Sep 28, 2013 · Viewed 25.9k times · Source

I have some problem with my project. Can someone who's good in xcode help me up with that linker error on skype or teamviewer? I didn't made that code but it was working earlier but now it shows some linker error

Command

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1

Thanks for any help in advance.

Answer

Pradeep Mittal picture Pradeep Mittal · Dec 5, 2013

1 >I was using scrollview delegate methods in my project when i didn't set the UIScrollViewDelegate in my header file.

2 >The linker error was generated because I deleted the whole .xib file once but when I added a new .xib file and tried to link it that aroused this error.

To fix this error I had to make a new project and copied all my code in that new project.There may be an easier way to do this but this is what I did to fix it.