使用Cocoapods 导入第三方的资源时,出现如下警告:
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.
不要使用文本编辑去编辑Podfile,使用Xcode编辑,或者使用终端敲命令去编辑。
解决办法:
Using TextEdit will give you following,
pod ‘Parse’, ‘~> 1.7.1’//notice the quotes 注意 引号 ,注意 引号 ,注意 引号
Use Xcode to open Podfile and you will get correct quotes as following,
pod 'Parse', '~> 1.7.1'//notice the quotes 注意 引号 ,注意 引号 ,注意 引号
Terminal Commands:
$ touch Podfile //OR $ cd <parentDirectory of Podfile>
$ open -a Xcode Podfile
本文解决使用Cocoapods导入第三方资源时出现的Podfile警告问题,提供正确的Podfile编辑方式及终端命令指导,确保项目顺利运行。
31万+

被折叠的 条评论
为什么被折叠?



