繁体   English   中英

如何解决Pod安装错误?

[英]How to resolve the Pod install error?

当我安装Pod时。 它显示了这样的错误。 怎么解决这个?

你的Podfile已经清理了智能报价。 为避免将来出现问题,您不应使用TextEdit进行编辑。 如果您不使用TextEdit,则应在所选编辑器中关闭智能引号。

我找到了这样的解决方案:

$ cd <parentDirectory of Podfile>
$ open -a Xcode Podfile`

如果我这样说,它会显示错误:

“Podfile”无法打开,因为它来自一个身份不明的开发人员。

请在Xcode中编辑您的Podfile。

在Xcode中打开您的Podfile。 编辑它。 保存。

当您使用TextEdit进行Pod文件编辑时

pod ‘Fabric’, ‘~> 1.7.1′    //notice the quotes

使用Xcode打开Podfile。

pod 'Fabric', '~> 1.7.1'  //notice the quotes

从文件夹中删除Podfile.lock

关闭Xcode项目。

执行pod install

打开ProjectName.xcworkspace文件。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM