Swift 使用CocoaPods导入Alamofire,却识
2020-03-02 本文已影响0人
jsone
像往常使用CocoaPods导入第三方库一样,在Podfile文件添加pod 'Alamofire',然后在使用终端pod install
use_frameworks!
source 'https://github.com/CocoaPods/Specs.git'#公有库地址
target '项目名称' do
pod 'Alamofire'
end
然后在需要调用的地方导入Alamofire
import Alamofire
然而运行却报错:无法识别Alamofire
解决方法:
QQ20200302-143423@2x.png
QQ20200302-143547@2x.png
QQ20200302-143741@2x.png
参考文章: