我正在尝试创建自定义UIButton
。这是我的.h类:
@interface RadioUIButton : UIButton
@property (strong) NSString* stringTag;
@end
当我尝试从
FeedbackViewController.m
访问该类时,出现此错误:体系结构arm64的未定义符号:
从以下位置引用的“_OBJC_CLASS _ $ _ RadioUIButton”
FeedbackViewController.o中的objc-class-ref ld:未为体系结构arm64铛找到符号:错误:链接器命令失败
退出代码1(使用-v查看调用)
到目前为止我尝试过的是:
启用位码:设置为NO
仅构建 Activity 体系结构:设置为“否”
以上都不起作用。我还能尝试什么?
最佳答案
检查是否为该类检查了“目标 member 资格”。对于您的项目,选择RadioUIButton.m文件并进行检查。
关于ios - 架构arm64的 undefined symbol :“_ OBJC_CLASS _ $ _ RadioUIButton”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/47727756/