使用cocoapods导入其他的框架,发现调用的时候总是报错。
Undefined symbols for architecture x86_64:
"_OBJC_CLASS_$[objectName]", referenced from:
objc-class-ref in [objectName].o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
后来用cocoapod更新的时候,发现终端的一段警告
[!] The `myQQ [Debug]` target overrides the `OTHER_LDFLAGS` build setting defined in `Pods/Target Support Files/Pods/Pods.debug.xcconfig'. This can lead to problems with the CocoaPods installation
- Use the `$(inherited)` flag, or
- Remove the build settings from the target.
之前用了手动导入SDK,修改了Other Linker Flags
image所以解决办法就是:
按照提示,增加$(inherited)
image添加之后,问题终于解决
网友评论