gpt4 book ai didi

ios - 使用 git 中的库时自定义标注 View 出错

转载 作者:行者123 更新时间:2023-11-28 21:39:42 24 4
gpt4 key购买 nike

库网址:github.com/s3lvin/DXCustomCallout-ObjC

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

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

提前致谢。

最佳答案

嗨,我也遇到了同样的错误,我只是在底部添加了 2 行就可以解决这个问题

@end

@implementation DXAnnotation

检查屏幕截图。 enter image description here

关于ios - 使用 git 中的库时自定义标注 View 出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32668694/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com