1、描述:在pod导入JWT生产token的库时候报错 信息如下
Undefined symbols for architecture arm64:
"_OBJC_CLASS_$_JWT", referenced from:
objc-class-ref in AppDelegate.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
2、解决办法:
通过百度,相关问题特别多,尝试着解决都失败了。我想着用一个干净的工程来pod这个库,果然没有报这个错误,于是查看配置表,发现多了一个 "$(inherited)",马上添加,果然凑效
未报错other link flags 配置
相关解释
$(inherited)
执行到inherited这一行的时候,自动执行父类的相关代码,执行完后再回来执行子类的