"_kxxx", referenced from:

Undefined symbols for architecture arm64:
  "_kxxx", referenced from:
      -[xxx xxx] in libxxxx.a(xxxx.o)
  "_kxxx", referenced from:
      -[xxx xxx] in libxxx.a(xxx.o)
  "_OBJC_CLASS_$_xxxx", referenced from:
      objc-class-ref in libxxxx.a(xxxx.o)
      objc-class-ref in libxxx.a(xxxx.o)
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)

找不到库导致的问题。

1、路径问题

看了看路径没问题。

2、同一个库在项目的不同文件中被添加了多次

后来发现是同一个库在项目的不同的两个文件夹中被添加了两次,想想添加两次也没问题,实际上是报了如上错误。删除一个就可以了。

3、类只申明了但未实现

@implementation xxx

@end

没有添加实现

你可能感兴趣的:(#,error,&,warning)