본문 바로가기

개발도구/iOS - 아이폰 개발

ASIHTTPRequest in ARC


ASIHTTPRequest 는 더 이상 ARC( Automatic Reference Counting) 제공하지 않는다. 

기존의 소스 및 프로젝트를 참고할 사항이 있어 매우 곤란한 사항에 처해 있었을때 아래와 같이 해결을 하였습니다. 


1. ASIHTTPRequest Library 의 모든 파일에 -fno-objc-arc 플래그를 넣어줍니다. 


click project name -> select target -> build phase -> compile sources

Set compile flags -fno-objc-arc for all ASIHTTPRequest source files.





2. 해당 관련 플레임워크를 임포트 해준니다. 

SystemConfiguration.framework

MobileCoreServices.framework

CoreGraphics.framework 

libz.dylib.