본문 바로가기

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

[ios] _OBJC_CLASS_$_GANTracker - 구글분석기 에러

먼저 구글 소스와 함께 등록 해줘야 할 선행이 있다.

http://codingworshipper.tistory.com/search/%EA%B5%AC%EA%B8%80%EB%B6%84%EC%84%9D


작업을 완료 하였다면,

Undefined symbols for architecture armv7:   "_OBJC_CLASS_$_GANTracker", referenced from:

위와 같은 에러는 구글 분석기를 달련서 위와 같이 에러가 날 경우 librery에 추가하지 않는 framework가 있기 때문이다. 




librery 추가 하는 곳에서 add other을 클릭하여 

libGoogleAnalytics_NoThumb.a
libGoogleAnalytics.a

을 추가하여 줘야 한다. 라이브러리의 위치는 가장꼭대기 메인 프로젝트 파일->타겟 -> build pases 에서 추가 할수 있다.