执行"pod install"时出现Podfile错误?

kid*_*d49 10 objective-c ios cocoapods

我使用本教程制作了自己的可可豆荚. 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
Run Code Online (Sandbox Code Playgroud)

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

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

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

Mar*_*bri 40

您可能已经Podfile使用TextEdit.app 编辑了您的文本,它取代'了"智能引号"(.

一定要使用常规引号(').


Rém*_*rin 0

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

尝试这样做:

$ git add -A && git commit -m "Release 0.0.1."
$ git tag '0.0.1'
$ git push --tags
Run Code Online (Sandbox Code Playgroud)