如何解决 Pod 安装错误?
How to resolve the Pod install error?
当我安装 Pod 时。它显示这样的错误。如何解决?
Your Podfile has had smart quotes sanitised. To avoid issues in the
future, you should not use TextEdit for editing it. If you are not
using TextEdit, you should turn off smart quotes in your editor of choice.
我找到了这样的解决方案:
$ cd <parentDirectory of Podfile>
$ open -a Xcode Podfile`
如果我这样写,会显示错误:
“Podfile” can’t be opened because it is from an unidentified developer.
请在 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
个文件。
当我安装 Pod 时。它显示这样的错误。如何解决?
Your Podfile has had smart quotes sanitised. To avoid issues in the future, you should not use TextEdit for editing it. If you are not using TextEdit, you should turn off smart quotes in your editor of choice.
我找到了这样的解决方案:
$ cd <parentDirectory of Podfile>
$ open -a Xcode Podfile`
如果我这样写,会显示错误:
“Podfile” can’t be opened because it is from an unidentified developer.
请在 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
个文件。