首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Pod安装失败,在El Capitan上出现以下错误

Pod安装失败,在El Capitan上出现以下错误
EN

Stack Overflow用户
提问于 2016-06-15 08:03:11
回答 3查看 1.1K关注 0票数 1

CocoaPods没有在El Capitan上工作:

代码语言:javascript
复制
Analyzing dependencies

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

Resolving dependencies of `Podfile`

Comparing resolved specification to the sandbox manifest
  A Moodstocks-iOS-SDK

Downloading dependencies

-> Installing Moodstocks-iOS-SDK (4.1.6)
 > Http download
   $ /usr/bin/curl -f -L -o
   /var/folders/jv/17c1dkr902x7c5_2wmln6n3w0000gn/T/d20160615-44202-kr01v0/file.zip
   https://moodstocks.com/static/releases/moodstocks-ios-sdk-4.1.6.zip --create-dirs
   --netrc
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
     0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0curl: (22) The requested URL returned error: 404 Not Found

[!] Error installing Moodstocks-iOS-SDK
[!] /usr/bin/curl -f -L -o /var/folders/jv/17c1dkr902x7c5_2wmln6n3w0000gn/T/d20160615-44202-kr01v0/file.zip https://moodstocks.com/static/releases/moodstocks-ios-sdk-4.1.6.zip --create-dirs --netrc

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0curl: (22) The requested URL returned error: 404 Not Found


/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/http.rb:93:in `download_file'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-downloader-1.0.0/lib/cocoapods-downloader/http.rb:26: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/local/bin/pod:22:in `load'
/usr/local/bin/pod:22:in `<main>'

我不知道这是哪种错误?

我已经更新了RubyGems和CocoaPods。

这是我的个人档案

代码语言:javascript
复制
# Uncomment this line to define a global platform for your project
# platform :ios, '9.0'

target 'Project Web Viewer' do
  # Uncomment this line if you're using Swift or would like to use dynamic frameworks
  # use_frameworks!

  # Pods for Project Web Viewer
  pod 'Moodstocks-iOS-SDK', '~> 4.1'
end
EN

回答 3

Stack Overflow用户

发布于 2016-06-15 08:13:49

它尝试从https://moodstocks.com/static/releases/moodstocks-ios-sdk-4.1.6.zip下载Moodstock,该文件目前不可用(返回404页)。

然而,https://moodstocks.com/static/releases/moodstocks-ios-sdk-4.1.7.zip似乎是存在的。

您可以尝试强制使用该版本:

代码语言:javascript
复制
pod 'Moodstocks-iOS-SDK', '4.1.7'
票数 1
EN

Stack Overflow用户

发布于 2016-06-15 08:43:48

代码语言:javascript
复制
platform :ios, "8.0"
use_frameworks!

target 'ProjectX' do

pod 'Moodstocks-iOS-SDK'

end

这应该是项目的Podfile,它将安装最新的Moodstock API版本,即4.1.7。在Cocoapods页面。上看这里

票数 0
EN

Stack Overflow用户

发布于 2016-09-09 08:58:42

如果pod‘Moodstocks iOS-SDK’,'4.1.7',不工作,那么请先运行

代码语言:javascript
复制
$ pod repo update

那就跑

代码语言:javascript
复制
$ pod install

注意: pod更新命令花费大量时间。

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/37829502

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档