前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >[!] No `Podfile' found in the project directory.

[!] No `Podfile' found in the project directory.

作者头像
honey缘木鱼
发布2018-06-13 16:37:35
1.6K0
发布2018-06-13 16:37:35
举报
文章被收录于专栏:娱乐心理测试娱乐心理测试

从网上下载的参考项目,运行时遇到的错误如下:

diff: /../Podfile.lock: No such file or directory diff: /Manifest.lock: No such file or directory error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation. 

错误显示

根据提示,在终端直接执行:pod install,出现错误如下:

错误显示

看到问题出现,感觉自己好傻,都没有创建Podfile,如果没有创建Podfile

文件将无法安装, CocoaPods都不知道改安装说明, 怎么去安装呢,

所以按照步奏来一步一步操作:

1.cd到自己的项目目录下(cd +空格+直接拖拽项目到终端)

2.vim Podfile(创建Podfile)

出现以下代码(配置文件,表示成功):

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

然后保存退出

esc

:wq

执行pod install

完美解决No `Podfile' found in the project directory.的问题。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018.02.06 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档