4

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.

Community
  • 1
  • 1
Pradeep Mittal
  • 595
  • 1
  • 8
  • 19
  • Is that the one and only error? – Andrew Sep 28 '13 at 16:16
  • i fixed it somehow but i hav another error in that code now....can u teamview or skype me? – Pradeep Mittal Sep 28 '13 at 16:27
  • not me. sorry. could you post the error? – Andrew Sep 28 '13 at 16:30
  • i removed the error but now the segments lost the colour they had earlier.....it was working earlier though....and moreover the code is not done my me as i dont hav any knowledge of segments – Pradeep Mittal Sep 28 '13 at 16:36
  • Please post some code with the "segments" that you talk about. – Andrew Sep 28 '13 at 16:37
  • sorry ur comment was not visible for a long time.....i posted my implementation file and there are 4 more files that work as header files to the ViewController implementation and header file. I still haven't posted.Tell me if u need them. – Pradeep Mittal Sep 28 '13 at 17:18
  • i removed the code as i think i found an answer myself....thanx for your concern – Pradeep Mittal Sep 28 '13 at 18:38
  • Please post your answer below for others to find – Andrew Sep 28 '13 at 18:57
  • 2
    The problem was that i didn't set the in my header file so the scrolls on my app were never displayed.Sorry for asking a noob question. And that linker error got fixed when i copied my header files and implementation files in another new xcode project.I think the problem was that i mistakenly deleted the nib file once and then made another one from "New File" option but that basically arosed those disastrous problems for me. – Pradeep Mittal Sep 28 '13 at 19:13
  • I will +1 that so others can find it – Andrew Sep 28 '13 at 19:57
  • HI @PradeepMittal plz let us know how you solve the below error so tat other visitor can also get it... Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang failed with exit code 1 – sandy Dec 04 '13 at 14:14
  • I am also facing the same issue like Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/libtool failed with exit code 1, What should be the solution for this – AMohan Jul 15 '14 at 06:20

3 Answers3

6

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.

Pradeep Mittal
  • 595
  • 1
  • 8
  • 19
  • 2
    When adding files in Xcode you need to do: File -> Add files to "YourProject"... This will make it so this error doesn't arise. – Sakiboy Jun 23 '14 at 03:00
0

Cleaning 'Other Librarian Flags' of all content works

Michal Shatz
  • 1,416
  • 2
  • 20
  • 31