0

库 URL:github.com/s3lvin/DXCustomCallout-ObjC

我将上面的链接库用于我的 iOS 自定义标注视图,但我无法在我的项目中使用以下类。出错

DXAnnotationSettings.h
DXAnnotationSettings.m
DXAnnotationView.m
DXAnnotationView.h

错误是:

Undefined symbols for architecture x86_64:
  "_OBJC_CLASS_$_DXAnnotation", referenced from:
      objc-class-ref in ViewController.o
     (maybe you meant: _OBJC_CLASS_$_DXAnnotationSettings, _OBJC_CLASS_$_DXAnnotationView )
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

错误快照可在以下链接获得: https ://www.dropbox.com/s/4g9xpd9htmoejur/Screen%20Shot%202015-09-19%20at%206.19.34%20PM.png?dl=0

提前致谢。

4

1 回答 1

2

嗨,我也遇到了同样的错误,我只是在底部添加了 2 行并能够解决此问题

@end

@implementation DXAnnotation

检查截图。在此处输入图像描述

于 2016-03-11T10:26:12.930 回答