【问题标题】:Fatal Authentication Error when i try 'Pod Install' command当我尝试“Pod Install”命令时出现致命的身份验证错误
【发布时间】:2016-08-31 05:23:56
【问题描述】:

我正在尝试使用 Cocoa Pods 将我的框架库实现到我的项目中。

我发现了类似的问题,但他们的错误信息与我的不同。因此,我发布了这个问题。

我使用pod init 命令成功创建了 pod 文件并在 TextEditor 中打开了 pod 文件并保存了我的代码

以下是我的 Pod 文件内容

#platform :ios, '8.0'
source 'git@git.assembla.com:ioslibs.podspecs.git'
source 'https://github.com/CocoaPods/Specs.git'

target 'WatchList' do

pod 'matrix'
pod 'lego'

end

当我在我的项目目录中尝试pod install 命令时,它显示以下错误。

注意

我提供了有效的用户名和密码。

但它甚至给了我同样的错误 如果我(故意)提供不正确的用户名和密码。

我希望用户名和密码没有问题,但我找不到真正的问题。

感谢您的时间..(:


更新

当我尝试pod install --verbose

GaneshBabu:WatchList ganeshbabu$ pod install --verbose
/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/universal-darwin14/rbconfig.rb:213: warning: Insecure world writable dir /usr in PATH, mode 040777
  Preparing

Analyzing dependencies

Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-WatchList`: (``)

Resolving dependencies of `Podfile`

Comparing resolved specification to the sandbox manifest
  A lego
  A matrix

Downloading dependencies

-> Installing lego (1.0.0)
 > Git download
 > Git download
     $ /usr/bin/git clone https://git.assembla.com/ioslibs.lego.git
     /var/folders/fw/88lq9hbs5s9f4gdw1gtkbh780000gq/T/d20160831-1150-r0nsrb
     --template= --single-branch --depth 1 --branch 1.0.0
     Cloning into '/var/folders/fw/88lq9hbs5s9f4gdw1gtkbh780000gq/T/d20160831-1150-r0nsrb'...
Username for 'https://git.assembla.com': ganeshbabu.m977981
Password for 'https://ganeshbabu.m977981@git.assembla.com': 
     fatal: Authentication failed for 'https://git.assembla.com/ioslibs.lego.git/'

[!] Error installing lego
[!] /usr/bin/git clone https://git.assembla.com/ioslibs.lego.git /var/folders/fw/88lq9hbs5s9f4gdw1gtkbh780000gq/T/d20160831-1150-r0nsrb --template= --single-branch --depth 1 --branch 1.0.0

Cloning into '/var/folders/fw/88lq9hbs5s9f4gdw1gtkbh780000gq/T/d20160831-1150-r0nsrb'...
fatal: Authentication failed for 'https://git.assembla.com/ioslibs.lego.git/'


/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader.rb:122:in `rescue in execute_command'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader.rb:120:in `execute_command'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-1.0.0/lib/cocoapods-downloader/base.rb:154:in `block in executable'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-1.0.0/lib/cocoapods-downloader/git.rb:64:in `block in clone'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader.rb:153:in `block in ui_sub_action'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:63:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader.rb:152:in `ui_sub_action'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-1.0.0/lib/cocoapods-downloader/git.rb:62:in `clone'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-1.0.0/lib/cocoapods-downloader/git.rb:30:in `download!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-1.0.0/lib/cocoapods-downloader/base.rb:82:in `block in download'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader.rb:137:in `block in ui_action'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:63:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader.rb:136:in `ui_action'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-1.0.0/lib/cocoapods-downloader/base.rb:80:in `download'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader.rb:103:in `download_source'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader.rb:70:in `download_request'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader/cache.rb:170:in `download'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader/cache.rb:153:in `block in uncached_pod'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader/cache.rb:180:in `call'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader/cache.rb:180:in `in_tmpdir'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader/cache.rb:152:in `uncached_pod'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader/cache.rb:33:in `download_pod'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/downloader.rb:39:in `download'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/pod_source_installer.rb:120:in `download_source'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer/pod_source_installer.rb:60:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:346:in `install_source_of_pod'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:313:in `block (2 levels) in install_pod_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:84:in `titled_section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:312:in `block in install_pod_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:304:in `each'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:304:in `install_pod_sources'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:160:in `block in download_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/user_interface.rb:63:in `section'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:158:in `download_dependencies'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/installer.rb:115:in `install!'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command/install.rb:37:in `run'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.0/lib/claide/command.rb:334:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/lib/cocoapods/command.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.0.1/bin/pod:55:in `<top (required)>'
/usr/bin/pod:23:in `load'
/usr/bin/pod:23:in `<main>'

【问题讨论】:

  • 使用 pod install --verbose 查看是否记录了任何可能有帮助的额外输出
  • @Shubhank 我会用错误消息更新我的问题
  • 可能会重新检查您的凭据,除非我们知道,否则我们无能为力。

标签: ios cocoapods assembla


【解决方案1】:

这是我的 pod 文件的样子:

也许你可以用这个交叉验证:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, "8.0"

use_frameworks!

target 'WatchList' do

   pod 'matrix'

   pod 'lego'

end

您还可以交叉验证您安装 pod 的目录

【讨论】:

  • 我的目录是正确的。您使用的是 use_frameworks!,因为您使用的是 Switf。我正在使用Objective C。其他一切都完全相同..你是如何编写你的pod文件的(使用TextEditor或终端)?
  • 使用终端。前往终端。将目录更改为您的项目文件夹。点击“vi podfile”来编辑 pod 文件。按“i”插入,然后键入要安装的 pod。之后使用escape->Shift冒号->wq保存和pod文件并运行“pod install”
猜你喜欢
  • 2021-02-06
  • 2018-08-29
  • 2017-08-07
  • 2020-10-16
  • 2021-05-24
  • 1970-01-01
  • 2013-12-04
  • 2015-06-01
  • 2021-01-10
相关资源
最近更新 更多