Я полностью удалил XCode, удалил все настройки, удалил папку complete / Developer и заново установил XCode.
Я создаю новое приложение Cocoa, перехожу к Target, выполняю «Get info» в цели и включаю «версию компилятора C / C ++» для «LLVM compiler 1.0.2» и нажимаю Build.
Я получаю:
ld: warning: directory '/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64' following -L not found
ld: warning: directory '/usr/lib/gcc/i686-apple-darwin10/4.2.1/x86_64' following -L not found
ld: warning: directory '/usr/lib/i686-apple-darwin10/4.2.1' following -L not found
ld: warning: directory '/usr/lib/gcc/i686-apple-darwin10/4.2.1' following -L not found
ld: warning: directory '/usr/lib/gcc/i686-apple-darwin10/4.2.1' following -L not found
ld: warning: directory '/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../../i686-apple-darwin10/4.2.1' following -L not found
ld: warning: directory '/usr/lib/gcc/i686-apple-darwin10/4.2.1/../../..' following -L not found
ld: library not found for -lgcc
Command /Developer/usr/bin/clang failed with exit code 1
Кто-нибудь может мне здесь помочь? Интерфейс LLVM + GCC работает, но я действительно хотел бы использовать Clang (компилятор LLVM 1.0.2). Новая установка XCode, новый проект Cocoa по-прежнему имеет эту проблему.