CocoaPods中的Smart quotes were detected...警告

Tips

在执行pod install命令时,出现了如下的警告:

1
2
3
4
5
[!] Smart quotes were detected and ignored in 
your Podfile. 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.

大致的意思是:在Podfile文件中,引号被智能的检测到并被忽略。

通过检查Podfile文件,发现了如下代码:

1
target 'Demo’ do

这明显是因为输入法切换导致的右引号写成了中文的单引号,这个问题很难被发现,即便没什么影响,但是改一下就可以消除警告,何乐为不为:

1
target 'Demo' do

本文作者:霖溦
本文链接:https://kukumalucn.github.io/blog/2018/08/01/CocoaPods中的Smart-quotes-were-detected-警告/
版权声明:本博客所有文章除特别声明外,均采用 CC BY-NC-ND 4.0 许可协议。转载请注明出处!

坚持原创技术分享,您的支持将鼓励我继续创作!