ios – 执行“pod install”时Podfile错误?

前端之家收集整理的这篇文章主要介绍了ios – 执行“pod install”时Podfile错误?前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用本教程制作了自己的可可豆荚.
http://guides.cocoapods.org/making/making-a-cocoapod.html
我把它推送到我自己的github仓库.
https://github.com/kidsid59/appExample
当我尝试在自己的示例项目中使用它,通过在其podfile中进行输入
target "PodInstallDemoApp" do

pod ‘appExample’,:git => 'https://github.com/kidsid59/appExample.git'

end

然后尝试在终端中运行“pod install”.
它说 :-

[!] Invalid `Podfile` file: undefined local variable or method `‘appExample’' for #    <Pod::Podfile:0x007f92e111dfc0>. Updating CocoaPods might fix the issue.

看起来它无法识别pod名称.
我已经浪费了很多时间在这个小小的建议会有所帮助.

解决方法

您可能已经使用TextEdit.app编辑了Podfile,它替换为“智能引号”(‘和’).

请务必使用常规的引号(‘).

原文链接:https://www.f2er.com/iOS/329883.html

猜你在找的iOS相关文章