无法安装 podfile
Cannot install a podfile
我已经安装了 Cocoapods,运行 pod 设置,创建了一个 pod 文件,然后当我尝试安装它时,出现以下错误。
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:13:in `report': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:58:in `report_error'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:300:in `handle_exception'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:274:in `rescue in run'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:264:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:45:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/bin/pod:43:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'
这是我的播客文件中的内容
platform :ios, '7.0'
pod ‘pop’, ‘~> 1.0′
我已经卸载 cocoa pods 并重新安装,但没有成功。甚至尝试了以下解决方案,该解决方案适用于在 pod install 上遇到问题的其他人,但无济于事。
$ sudo rm -fr ~/.cocoapods/repos/master
$ pod setup
有什么想法吗?
谢谢
这似乎是暂时的问题,可能在 cocoa pods 方面。今天重试 'pod install' 没有问题。
当我使用 Textedit 编辑我的 Podfile 时,我遇到了这种情况,而不是正常的单引号,而是反引号,即:
我明白了:'
而不是这个:'
我已经安装了 Cocoapods,运行 pod 设置,创建了一个 pod 文件,然后当我尝试安装它时,出现以下错误。
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
fatal: Not a git repository (or any of the parent directories): .git
/Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/user_interface/error_report.rb:13:in `report': incompatible character encodings: UTF-8 and ASCII-8BIT (Encoding::CompatibilityError)
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:58:in `report_error'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:300:in `handle_exception'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:274:in `rescue in run'
from /Library/Ruby/Gems/2.0.0/gems/claide-0.7.0/lib/claide/command.rb:264:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/lib/cocoapods/command.rb:45:in `run'
from /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.35.0/bin/pod:43:in `<top (required)>'
from /usr/bin/pod:23:in `load'
from /usr/bin/pod:23:in `<main>'
这是我的播客文件中的内容
platform :ios, '7.0'
pod ‘pop’, ‘~> 1.0′
我已经卸载 cocoa pods 并重新安装,但没有成功。甚至尝试了以下解决方案,该解决方案适用于在 pod install 上遇到问题的其他人,但无济于事。
$ sudo rm -fr ~/.cocoapods/repos/master
$ pod setup
有什么想法吗?
谢谢
这似乎是暂时的问题,可能在 cocoa pods 方面。今天重试 'pod install' 没有问题。
当我使用 Textedit 编辑我的 Podfile 时,我遇到了这种情况,而不是正常的单引号,而是反引号,即:
我明白了:' 而不是这个:'