XCode 에러대응 : "_OBJC_CLASS_$_MKAnnotationView", referenced from:"등










클릭-> 프레임워크란










에러메세지 :

Undefined symbols:

  "_OBJC_CLASS_$_MKAnnotationView", referenced from:

      _OBJC_CLASS_$_NumberAnnotationView in NumberAnnotationView.o

  "_OBJC_METACLASS_$_MKAnnotationView", referenced from:

      _OBJC_METACLASS_$_NumberAnnotationView in NumberAnnotationView.o

  "_OBJC_CLASS_$_MKReverseGeocoder", referenced from:

      objc-class-ref-to-MKReverseGeocoder in MapWatchViewController.o

ld: symbol(s) not found

collect2: ld returned 1 exit status


위와같은 에러메세지가 뜬다면, 보통 프레임워크(FrameWork)문제이다.

해당 클래스를 참조할 수 있는 프레임워크를 받아오자.


나는 이 에러를 MapKit.framework를 추가함으로써 해경하였다.