2015-01-31 1 views
4

신속한 프로젝트가 있습니다.이 프로젝트는 CocoaPods v0.36.0.beta.2를 통해 SDWebImage을 참조했습니다. 내 프로젝트는 ios 8.0 이상을 대상으로하고 내 Podfile은 platform :ios, '8.0'을 선언합니다. 내 응용 프로그램과 lldb 콘솔의 모든 po 명령을 실행하려는 시도에 중단 점을 명중 할 때lldb po 오류 : SDWebImage가 Deployement 대상 버전 <5.0을 지원하지 않습니다.

그러나, 나는 다음과 같은 오류 얻을 :

error: Error in auto-import: 
failed to get module 'AutomationTests' from AST context: 
/Users/me/Library/Developer/Xcode/DerivedData/MyProject-ecinfzhnelbxxegrpzcpwnezmvot/Build/Products/QA-iphonesimulator/Pods/SDWebImage.framework/Headers/Pods-SDWebImage-umbrella.h:4:9: note: in file included from /Users/me/Library/Developer/Xcode/DerivedData/MyProject-ecinfzhnelbxxegrpzcpwnezmvot/Build/Products/QA-iphonesimulator/Pods/SDWebImage.framework/Headers/Pods-SDWebImage-umbrella.h:4: 
#import "SDImageCache.h" 
     ^
/Users/me/Library/Developer/Xcode/DerivedData/MyProject-ecinfzhnelbxxegrpzcpwnezmvot/Build/Products/QA-iphonesimulator/Pods/SDWebImage.framework/Headers/SDImageCache.h:10:9: note: in file included from /Users/me/Library/Developer/Xcode/DerivedData/MyProject-ecinfzhnelbxxegrpzcpwnezmvot/Build/Products/QA-iphonesimulator/Pods/SDWebImage.framework/Headers/SDImageCache.h:10: 
#import "SDWebImageCompat.h" 
     ^
/Users/me/Library/Developer/Xcode/DerivedData/MyProject-ecinfzhnelbxxegrpzcpwnezmvot/Build/Products/QA-iphonesimulator/Pods/SDWebImage.framework/Headers/SDWebImageCompat.h:17:2: error: SDWebImage doesn't support Deployement Target version < 5.0 
#error SDWebImage doesn't support Deployement Target version < 5.0 
^ 
could not build Objective-C module 'SDWebImage'A fatal parse error has occurred. LLDB may become unstable; please restart your debug session as soon as possible. 

을 어떻게 난을 목표로하고있어 SDWebImageCompat.h을 설득 할 수 버전 5.0 이상?

+1

행운이 있습니까? 똑같은 문제가있다. – BaSha

+1

'SDWebImageCompat.h'에서 불쾌한 줄을 수동으로 제거한 다음,'po'를 사용할 때마다 프로젝트를 다시 컴파일했다. 나는 컴파일러가 iOS 8.0을 타겟으로하고 있음을 알도록 강제하는 법을 잘 모르겠다. –

답변

7

조금 늦었지만 cocoapods를 통해 추가 한 라이브러리에서이 문제가 발생했습니다. "IPHONEOS_DEPLOYMENT_TARGET"프로젝트를 검색하여이 문제를 해결하고 내 sdwebimage가 어떤 이유로 4.3에서 컴파일되고 있음을 확인했습니다. 이것을 바꾸면 나에게 효과가있다.

희망이 있으면 도움이 될 것입니다.

관련 문제