【问题标题】:custom callout view get error while using library from git自定义标注视图在使用来自 git 的库时出错
【发布时间】:2015-09-19 13:18:30
【问题描述】:

库地址: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

提前致谢。

【问题讨论】:

    标签: ios objective-c dictionary callout


    【解决方案1】:

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

    @end
    
    @implementation DXAnnotation
    

    检查截图。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多