我們手動(dòng)導(dǎo)入第三方庫(kù)的時(shí)候,感覺(jué)管理不是很方便,于是會(huì)選擇使用Cocoapods管理?,F(xiàn)在記錄一下使用心得,當(dāng)使用cocoapods導(dǎo)入afnetworking或者其他框架的時(shí)候,發(fā)現(xiàn)調(diào)用的時(shí)候總是報(bào)錯(cuò)。
"OBJC_CLASS$_SVProgressHUD", referenced from!
objc-class-ref in XXXX.o
clang: error: linker command failed with exit code 1 (use -v to see invocation)
在網(wǎng)上搜索了一堆的攻略,然而這并沒(méi)有什么卵用。
經(jīng)過(guò)不斷地搜索終于在網(wǎng)上看到了和我有相同問(wèn)題的文章,解決了這個(gè)問(wèn)題。
他是通過(guò)這個(gè)發(fā)現(xiàn)解決方法的
用cocoapod更新框架的時(shí)候,發(fā)現(xiàn)終端的一段警告
[!] 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.
這下有了思路了,原來(lái)之前手動(dòng)導(dǎo)入第三方庫(kù)的時(shí)候,修改了Other Linker Flags
所以解決辦法就是:
