最新消息:20190717 VPS服务器:Vultr新加坡,WordPress主题:大前端D8,统一介绍入口:关于

[已解决]pod update卡死在Installing mailcore2-ios

Mac crifan 1612浏览 0评论

折腾:

[已解决] pod update出错: Re-creating CocoaPods due to major version update

之后,不过此处中间停止了很长时间,怀疑是网路原因,所以(用Control+C)中断了:

➜  jianyou pod update
Update all pods
Re-creating CocoaPods due to major version update.
Updating local specs repositories
CocoaPods 1.1.0.beta.1 is available.
To update use: `sudo gem install cocoapods –pre`
[!] This is a test version we’d love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.1.0.beta.1
Analyzing dependencies
Downloading dependencies
Installing AFNetworking (2.5.4)
Installing DACircularProgress (2.3.1)
Installing FDFullscreenPopGesture (1.1)
Installing FMDB (2.6.2)
Installing MBProgressHUD (0.9.2)
Installing MBProgressHUD+BWMExtension (1.0.1)
Installing MJExtension (3.0.13)
Installing MJRefresh (3.1.12)
Installing MWPhotoBrowser (2.1.2)
Installing OLCOrm (1.1.1)
Installing QBImagePickerController (2.5.2)
Installing QBPopupMenu (2.0)
Installing REFrostedViewController (2.4.8)
Installing SDWebImage (3.8.1)
Installing SWTableViewCell (0.3.7)
Installing mailcore2-ios (0.5.1)
^C[!] Cancelled
➜  jianyou

重新试试:

结果还是在

Installing mailcore2-ios (0.5.1)

始终没有进展了。。。

[解决过程]

1.看到之前的提示,去试试:

sudo gem install cocoapods –pre

结果出错:

➜  jianyou sudo gem install cocoapods –pre
Password:
ERROR:  While executing gem … (Errno::EPERM)
    Operation not permitted – /usr/bin/xcodeproj

2.搜:

pod update 没反应

参考:

CocoaPods安装使用心得,分享给墙内的朋友们 – CocoaChina移动版

CocoaPods安装和使用教程

参考:

CocoaPods详解之—-使用篇 pod install/pod update更新慢的问题, – Align 的个人空间 – 开源中国社区

去试试:

➜  jianyou pod repo update
Updating spec repo `master`
CocoaPods 1.1.0.beta.1 is available.
To update use: `sudo gem install cocoapods –pre`
[!] This is a test version we’d love you to try.
For more information, see https://blog.cocoapods.org and the CHANGELOG for this version at https://github.com/CocoaPods/CocoaPods/releases/tag/1.1.0.beta.1

参考:

解决CocoaPods pod install/pod update更新慢的问题 – Logan’s – 博客频道 – CSDN.NET

去加上:

pod update –verbose –no-repo-update

➜  jianyou pod update –verbose –no-repo-update
Update all pods
  Preparing
Re-creating CocoaPods due to major version update.
Analyzing dependencies
Inspecting targets to integrate
  Using `ARCHS` setting to build architectures of target `Pods-EasyMail`: (“)
Finding Podfile changes
  – AFNetworking
  – FDFullscreenPopGesture
  – FMDB
  – MBProgressHUD+BWMExtension
  – MJExtension
  – MJRefresh
  – MWPhotoBrowser
  – OLCOrm
  – QBImagePickerController
  – QBPopupMenu
  – REFrostedViewController
  – SWTableViewCell
  – mailcore2-ios
Resolving dependencies of `Podfile`
Comparing resolved specification to the sandbox manifest
  A AFNetworking
  A DACircularProgress
  A FDFullscreenPopGesture
  A FMDB
  A MBProgressHUD
  A MBProgressHUD+BWMExtension
  A MJExtension
  A MJRefresh
  A MWPhotoBrowser
  A OLCOrm
  A QBImagePickerController
  A QBPopupMenu
  A REFrostedViewController
  A SDWebImage
  A SWTableViewCell
  A mailcore2-ios
Downloading dependencies
-> Installing AFNetworking (2.5.4)
  > Copying AFNetworking from `/Users/crifan/Library/Caches/CocoaPods/Pods/Release/AFNetworking/2.5.4-05edc` to
  `Pods/AFNetworking`
。。。
-> Installing mailcore2-ios (0.5.1)
> Http download
   $ /usr/bin/curl -f -L -o /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20160804-23132-1fi50gd/file.zip
   http://d.etpan.org/mailcore2-deps/mailcore2-ios/mailcore2-ios-8.zip –create-dirs –netrc-optional
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
     8 34.0M    8 3038k    0     0  58089      0  0:10:14  0:00:53  0:09:21 11017

 

很明显:

mailcore2-ios

这个库,很大,特别大:

之前之所以卡在:

mailcore2-ios

估计就是网络不够好?

总之是卡死了。

现在可以看到进度了:

那就继续等待,下载完成吧。

过了会,就可以了:

-> Installing mailcore2-ios (0.5.1)
> Http download
   $ /usr/bin/curl -f -L -o /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20160804-23132-1fi50gd/file.zip
   http://d.etpan.org/mailcore2-deps/mailcore2-ios/mailcore2-ios-8.zip –create-dirs –netrc-optional
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
   100 34.0M  100 34.0M    0     0   180k      0  0:03:12  0:03:12 –:–:–  387k
   $ /usr/bin/unzip /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20160804-23132-1fi50gd/file.zip -d
   /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20160804-23132-1fi50gd
   Archive:  /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20160804-23132-1fi50gd/file.zip
      creating: /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20160804-23132-1fi50gd/mailcore2-ios-8/
。。。
     inflating: /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20160804-23132-1fi50gd/mailcore2-ios-8/include/MailCore/NSValue+MCO.h
      creating: /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20160804-23132-1fi50gd/mailcore2-ios-8/lib/
     inflating: /var/folders/46/2hjxz38n22n3ypp_5f6_p__00000gn/T/d20160804-23132-1fi50gd/mailcore2-ios-8/lib/libMailCore-ios.a
> Running prepare command
   $ /bin/bash -c  set -e curl -O https://github.com/MailCore/mailcore2/raw/master/LICENSE
     % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                    Dload  Upload   Total   Spent    Left  Speed
   100   133  100   133    0     0     26      0  0:00:05  0:00:05 –:–:–    35
  > Copying mailcore2-ios from `/Users/crifan/Library/Caches/CocoaPods/Pods/Release/mailcore2-ios/0.5.1-f1c1c` to
  `Pods/mailcore2-ios`
  – Running pre install hooks
Generating Pods project
  – Creating Pods project
  – Adding source files to Pods project
  – Adding frameworks to Pods project
  – Adding libraries to Pods project
  – Adding resources to Pods project
  – Linking headers
  – Installing targets
    – Installing target `AFNetworking` iOS 6.0
    – Installing target `DACircularProgress` iOS 5.0
    – Installing target `FDFullscreenPopGesture` iOS 7.0
    – Installing target `FMDB` iOS 4.3
    – Installing target `MBProgressHUD` iOS 4.3
    – Installing target `MBProgressHUD+BWMExtension` iOS 7.0
    – Installing target `MJExtension` iOS 6.0
    – Installing target `MJRefresh` iOS 6.0
    – Installing target `MWPhotoBrowser` iOS 7.0
    – Installing target `OLCOrm` iOS 7.0
    – Installing target `QBImagePickerController` iOS 6.0
    – Installing target `QBPopupMenu` iOS 6.0
    – Installing target `REFrostedViewController` iOS 6.0
    – Installing target `SDWebImage` iOS 7.0
    – Installing target `SWTableViewCell` iOS 6.0
    – Installing target `Pods-EasyMail` iOS 7.0
  – Running post install hooks
  – Writing Xcode project file to `Pods/Pods.xcodeproj`
    – Generating deterministic UUIDs
  – Writing Lockfile in `Podfile.lock`
  – Writing Manifest in `Pods/Manifest.lock`
Integrating client project
Integrating target `Pods-EasyMail` (`EasyMail.xcodeproj` project)
  Adding Build Phase ‘📦 Embed Pods Frameworks’ to project.
  Adding Build Phase ‘📦 Copy Pods Resources’ to project.
  Adding Build Phase ‘📦 Check Pods Manifest.lock’ to project.
  – Running post install hooks
    – cocoapods-stats from `/Library/Ruby/Gems/2.0.0/gems/cocoapods-stats-1.0.0/lib/cocoapods_plugin.rb`
Sending stats
      – AFNetworking, 2.5.4
      – DACircularProgress, 2.3.1
      – FDFullscreenPopGesture, 1.1
      – FMDB, 2.6.2
      – MBProgressHUD, 0.9.2
      – MBProgressHUD+BWMExtension, 1.0.1
      – MJExtension, 3.0.13
      – MJRefresh, 3.1.12
      – MWPhotoBrowser, 2.1.2
      – OLCOrm, 1.1.1
      – QBImagePickerController, 2.5.2
      – QBPopupMenu, 2.0
      – REFrostedViewController, 2.4.8
      – SDWebImage, 3.8.1
      – SWTableViewCell, 0.3.7
      – mailcore2-ios, 0.5.1
  Pod installation complete! There are 13 dependencies from the Podfile and 16 total pods installed.

-》总共时间,也就不到5分钟左右

-》而之前等了几十分钟,也都不行

-》说明之前都:

pod update

默认会去更新本地的repo

-》所以一直消耗很长时间,却还未完成

-》而加上:

–no-repo-update

即可避免更新本地repo。

-》另外,加上:

–verbose

使得可以看到详细的输出,知道发生了什么。

-》最终,用:

pod update –verbose –no-repo-update

可以快速的更新所需要的库了。

[总结]

1.如果没有必要更新本地的库,则update时,使用:

pod update –no-repo-update

即可。

2.如果想要知道内部发生了什么,则可以加上–verbose

比如:

pod update –verbose –no-repo-update

转载请注明:在路上 » [已解决]pod update卡死在Installing mailcore2-ios

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
64 queries in 0.085 seconds, using 18.88MB memory