iOS   发布时间:2022-03-31  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了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,它替换为“智能引号”(‘和’).

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

大佬总结

以上是大佬教程为你收集整理的ios – 执行“pod install”时Podfile错误?全部内容,希望文章能够帮你解决ios – 执行“pod install”时Podfile错误?所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。