Ios 执行“时出现Podfile错误”;pod安装“;?

Ios 执行“时出现Podfile错误”;pod安装“;?,ios,objective-c,cocoapods,Ios,Objective C,Cocoapods,我使用本教程制作了自己的可可豆。 我把它推到自己的github存储库中。 当我试图在我自己的示例项目中使用它时,我在它的pod文件中创建了一个条目,就像 target "PodInstallDemoApp" do pod ‘appExample’, :git => 'https://github.com/kidsid59/appExample.git' end 然后尝试在终端中运行“pod安装”。 它说:- [!] Invalid `Podfile` file: undefined

我使用本教程制作了自己的可可豆。 我把它推到自己的github存储库中。 当我试图在我自己的示例项目中使用它时,我在它的pod文件中创建了一个条目,就像

target "PodInstallDemoApp" do

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

end
然后尝试在终端中运行“pod安装”。 它说:-

[!] Invalid `Podfile` file: undefined local variable or method `‘appExample’' for #    <Pod::Podfile:0x007f92e111dfc0>. Updating CocoaPods might fix the issue.
[!]无效的'Podfile'文件:未定义的局部变量或方法#的'appExample'。更新CoCoapod可能会解决这个问题。
看起来它无法识别pod名称。
我已经在这个小建议上浪费了很多时间。

也许是因为你没有任何标签

尝试这样做:

$ git add -A && git commit -m "Release 0.0.1."
$ git tag '0.0.1'
$ git push --tags

您可能已经用TextEdit.app编辑了您的
播客文件
,它将
'
替换为“智能报价”(
'
'

确保使用常规引号(

注意:您不应该使用TextEdit应用程序编辑pod文件,因为TextEdit喜欢 用更具图形吸引力的引号替换标准引号。 这会导致CoCoapod混淆并显示错误,因此 最好只使用Xcode或其他编程文本编辑器

使用TextEdit应用程序将为您提供以下信息:

pod ‘AFNetworking’, ‘~> 2.5′    //notice the quotes
使用Xcode打开Podfile,您将得到如下正确的引号:

pod 'AFNetworking', '~> 2.5'
要在Xcode中打开的终端命令:

$ touch Podfile  //OR $ cd <parentDirectory of Podfile>
$ open -a Xcode Podfile
$touch Podfile//或$cd
$open-一个Xcode文件