Xcode 8.1에서 8.2로 업데이트 한 후 프로젝트에서 Swift 컴파일러 오류가 발생했습니다. 종속성 관리를 위해 최신 Swift 버전과 Carthage를 사용하고 있습니다. Xcode 8.1에서 완벽하게 작동했으며 이제는 DerivedData
및 시뮬레이터 데이터를 청소하고 Xcode에서 클리닝하고 Build
폴더를 삭제하여 몇 시간을 시도했지만 아무 도움도 보이지 않습니다. Xcode 버전이 하나만 설치되어 있습니다. 이 같은 외모를 참조한다Xcode 8.2, Swift 컴파일러 오류 : 오류 : 예기치 않은 입력 파일
CompileSwiftSources normal x86_64 com.apple.xcode.tools.swift.compiler
cd <ProjectSource>
export DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer
export PATH="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin:/Applications/Xcode.app/Contents/Developer/usr/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin"
export SDKROOT=/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk
export TOOLCHAINS=com.apple.dt.toolchain.XcodeDefault
-- all files to compile --
unknown>:0: error: unexpected input file: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator10.2.sdk
Command /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc failed with exit code
폴더 :
그것은 사실이 그래서가 무엇인지에 대한 단서가 없다
나는 다음과 같은 컴파일 오류가 계속 ... 도움을 많이 받으실 수 있습니다! :)
기기를 일반 iOS 기기로 설정하면 정상적으로 빌드됩니까? –
아니요, 동일합니다 –
나는 똑같은 문제가있어서 나를 위해 신속한 깃발을 엉망으로 만들었습니다. 나는 그것이 코코아드를 제거했을 때 도입되었을 것임에 틀림 없어, -D를 남긴 것 같습니다. – wayju