2

I have some code in C that was compiling fine just yesterday. This is on Mac OS X but I don't use XCode at all. Today, I went to add another header and source file, nothing unusual. But when I tried to compile, I got the following warnings and error:

ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/6.0/lib/darwin'
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/lib/darwin'
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/lib/darwin'
ld: warning: directory not found for option '-L/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.0/lib/darwin'
ld: library not found for -lclang_rt.osx

As well, when I try to compile other codes that haven't been modified recently, I'm getting this error now too. I read this thread but the solution seems to be within XCode. Is there any way to fix this outside of XCode since I'm not using it for any of my projects and don't have anything under Build Settings?

edit: in the specified directories where the warnings are coming from, I found that I have ../clang/6.1.0 rather than ../clang/6.0 so I think the issue could be that the computer auto-updated overnight. But I don't know how to specify the new directory

Community
  • 1
  • 1
user1799323
  • 649
  • 8
  • 25

0 Answers0