2016-01-22 165 views
5

当我安装Pod时。它显示了这样的错误。如何解决这个问题?如何解决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.

回答

11

请在Xcode编辑Podfile。

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

当您使用文本编辑POD的文件编辑

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

打开Podfile和Xcode。

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

从文件夹中删除Podfile.lock

关闭Xcode项目。

执行pod install

打开ProjectName.xcworkspace文件。

+0

请告诉我清楚是iOS的新手。我已经在我的'Xcode'中打开了我的'podfile'。在那我需要编辑和保存。 – RAGHUNATH

+0

只需检查podfile中的引号,如果引号稍微交叉,则将其删除并添加。它应该看起来像答案中的第二种情况。 – technerd

+0

如果此答案有帮助,请将其标记为已接受,所以其他人会发现它有帮助。谢谢 – technerd