본문 바로가기

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

[아이폰] CFHostCreateWithName, CFStreamCreatePairWithSocketToCFHost 에러

google Analytics 을 하다 보니 이러한 에러가 나왔따.


Undefined symbols for architecture i386:
  "_CFHostCreateWithName", referenced from:
      -[GANTCPSocket connect:port:] in libGoogleAnalytics.a(GANTCPSocket.o)
  "_CFStreamCreatePairWithSocketToCFHost", referenced from:
      -[GANTCPSocket connect:port:] in libGoogleAnalytics.a(GANTCPSocket.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status

Resolution

Google Analytics lib depends on CFNetwork.framework, so add reference to the CFNetwork.framework and compile your project.

결국은 CFNetwork.framework을 추가 하지 않은 에러.. ㅎ
잘 확인해보지도 않고 막 카피해서 붙여 넣으니... 이런..