Flutter pod install 报 [!] No Podfile found in the project directory解决方案

在当前项目下进行以下六步操作:

第一步:

切换到ios目录下

cd ios

第二步:

创建Podfile

vim Podfile

第三步:

在Podfile文件里写入以下数据

source'https://github.com/CocoaPods/Specs.git'
platform:ios,'8.0'
inhibit_all_warnings!
target 'testDemo' do
pod 'AFNetworking', '~> 2.6.0'
end

第四步:

按esc。

第五步:

/无需找位置输入:wq,输入就行

wq 

第六步:

保存成功后,重新 pod install。

猜你喜欢

转载自blog.csdn.net/hzqit520/article/details/115767808