2014-02-12 2 views
6

iOS 6.0을 사용하여 빌드 된 이전 프로젝트 중 하나를 열려고합니다. 프로젝트는 잘 컴파일하는 데 사용되었지만 xCode 5에서 열면이 오류 메시지가 나타납니다.iOS xCode5 컴파일러가 LLVM 5.0으로 설정된 경우 지원되지 않는 컴파일러 'com.apple.compilers.llvmgcc42'오류가 발생합니다.

Unsupported compiler 'com.apple.compilers.llvmgcc42' selected for architecture 'armv7' 
Unable to determine concrete GCC compiler for file /Users/alexanderstone/Desktop/Development/RestKit/Vendor/NXJSON/NSError+Extensions.m of type sourcecode.c.objc. 
Unable to determine concrete GCC compiler for file /Users/alexanderstone/Desktop/Development/RestKit/Vendor/NXJSON/NXDebug.m of type sourcecode.c.objc. 
Unable to determine concrete GCC compiler for file /Users/alexanderstone/Desktop/Development/RestKit/Vendor/NXJSON/NXJsonParser.m of type sourcecode.c.objc. 
Unable to determine concrete GCC compiler for file /Users/alexanderstone/Desktop/Development/RestKit/Vendor/NXJSON/NXJsonSerializer.m of type sourcecode.c.objc. 

두 프로젝트 빌드 설정을 모두 확인했는데 올바른 것으로 나타납니다. LLVM 5.0이 둘 모두의 컴파일러로 선택되었습니다.

enter image description here

enter image description here

는 또한, 내가하는 .m가 컴파일러에 대해 불평 파일이 있는지 확인하고, 거기에 GCC에 대한 참조를 볼 수 없습니다. 일부 ASSERT() 및 다른 매크로가 있지만 컴파일러 관련 있는지 모르겠습니다.

모든 서브 프로젝트가 llvm5.0으로 설정된 것처럼 보이면 xCode 5에서 누락 된 llvmgcc4.2 컴파일러를 해결하려면 어떻게해야합니까?

답변

8

Found this similar question. 나에게있어 해결책은 하위 프로젝트와 Restkit 프로젝트 모두에 대해 편집기> 프로젝트 설정 유효성 검사로 이동하는 것이 었습니다.

+1

Xcode 8.3.3에서 편집기 -> 유효성 검사를 찾지 못했습니다. –

2

또한 XCode 7 및 아키텍처 'i386'을 열려면 컴파일러를 '기본 컴파일러 (Apple LLVM 7.1)'로 설정하는 것이 한 가지 해결책입니다.

3

이 문제의 한 가지 해결책은 내가이 문제에 직면했을 때 빌드 설정 -> 빌드 옵션 -> 컴파일러로 가서 C++를 기본값으로 설정하고 문제가 해결된다는 것입니다. see attached