Pod de instalar se queda en "Configuración de CocoaPods Maestro repo"
-
21-12-2019 - |
Pregunta
Estoy clonación de un proyecto a partir de un repositorio git, pero cuando voy a ejecutar pod install
la primera línea lo que veo es "la Configuración de CocoaPods Maestro repo" y después de que yo no puedo ver nada más, la consola se detiene allí.
No sé lo que está pasando.Alguien sabe qué está pasando aquí?¿Por qué CocoaPods parar allí?
Solución
Podría intentar ejecutar en modo verboso:
pod install --verbose
Esto le mostrará lo que COCOAPODS está haciendo:
Setting up CocoaPods master repo
Cloning spec repo `master` from `https://github.com/CocoaPods/Specs.git` (branch `master`)
$ /usr/bin/git clone 'https://github.com/CocoaPods/Specs.git' master
Cloning into 'master'...
Para mí, el paso anterior tardó durante mucho tiempo ya que el repo (diciembre de 2016) es ahora 1.1 gb
Otros consejos
pod install
o pod setup
obtiene todo repo con la historia cuando la ejecuta por primera vez.No necesitas esa historia de cometer.
pod setup
Ctrl +C
cd ~/.cocoapods/repos
git clone --depth 1 https://github.com/CocoaPods/Specs.git master
Tarda alrededor de 2 minutos en la conexión de red decente (4Mbps).El directorio master
tiene alrededor de 519m grande.
Pruebe este comando para rastrear su trabajo.
while true; do
du -sh ~/.cocoapods/
sleep 3
done
El problema es que no tiene instalados herramientas de línea de comandos, creo. Intente ejecutar en terminal:
sudo gem update --system
Después de esa descarga de herramientas de línea de comandos de Apple Simplemente busque 'Herramientas de línea de comandos' y descargue la versión correcta para su sistema operativo. Una vez que lo instale, ejecute en terminal:
sudo gem install cocoapods
pod setup
puede ser esta información será útil:
Respuesta oficial: http:// Blog.cocoapods.org/master-spec-repo-rate-limiting-post-mortem/
Como resultado de esta discusión https://github.com/cocoapods/cocoapods/issues/4989
brevemente: El repositorio de COCOAPODS experimenta un gran volumen de recuperación de GitHub y fue el problema.Los cambios han estado disponibles desde la versión 1.0.0.BETA.6.
Consejos de este documento:
If for whatever reason you cannot upgrade to version 1.0.0 just yet, you can perform the following steps to convert your clone of the Master spec-repo from a shallow to a full clone:
$ cd ~/.cocoapods/repos/master
$ git fetch --unshallow
Mi hack a primera instalación:
1. pod setup
2. Ctrl+C
After that I could find ~/.cocoapods/repos/ empty directory
3. Download https://github.com/CocoaPods/Specs/archive/master.zip
4. unpack it to ~/.cocoapods/repos/
5. Move to project folder
6. pod install --no-repo-update
Hoy toma cerca de 15 minutos
Cuando CocoaPods está haciendo que es la descarga de la totalidad de las especificaciones de repos a ~/.cocoapods
.Esto podría tomar un tiempo dependiendo de su conexión.Yo trate de hacerlo de forma explícita en primer lugar con pod setup
Nada de arriba funcionó para mí, así que esto es lo que funcionó:
pod setup
Ctrl +C
pod repo remove master
cd ~/.cocoapods/repos
git clone https://github.com/CocoaPods/Specs master
una vez completado funcionó.
vítores!
Lo que probé y más rápido que la clonación del repo:
-
pod setup
- Ctrl + C después de crear el directorio maestro
- Descargar .zip desde https://github.com/cocoapods/specs master
- Copie el contenido a
~/.cocoapods/repos
-
pod install --no-repo-update
en mi carpeta de proyecto
Después de eso, finalmente pude ver que las vainas se instalan
buena suerte!
Editar: El tamaño de la cremallera es de 144 MB (6 de julio de 2017)
pod setup --verbose
Estoy ejecutando el comando mencionado anteriormente en este momento, pero como se mencionó en @joe Blow, no muestra absolutamente ninguna información sobre el progreso.
¿Pero si abre el monitor de actividad en Mac (administrador de tareas en Windows?), Bajo la pestaña 'Network' verá un proceso llamado 'git-remote-https' y muestra elTamaño de 'bytes recibidos' aumentando.Después de descargar alrededor de 300 MB se detuvo y luego pude ver más progreso en la ventana del terminal.
Usé los siguientes 4 comandos
cd ~/.cocoapods/repos
git clone "https://github.com/CocoaPods/Specs" master --depth 1
cd master
git fetch --unshallow
pod setup
Me tomé tiempo como se esperaba, pero al menos no tuve que escalar en la pantalla preguntándose qué pasa en el fondo.
Esto sucede solo una vez.
-
master repo tiene + -1GB (noviembre de 2016) .
-
a Seguimiento del progreso Puede usar la aplicación de monitor de actividad
y buscargit-remote-https
. -
La próxima vez (
pod setup
opod repo update
) solo actualizará todos los repositores especiales en~/.cocoapods/repos
.
You will have to remove the repo and re-setup it...
pod repo remove master
pod setup
I'm monitoring the download progress by using
while true;
do
du -sh ~/.cocoapods/;
sleep 3;
done
the progress is very slow... and failed few times.
But somehow after increasing the git buffer limit by using this command line git config --global http.postBuffer 2M
The download speed is improving greatly and after downloading in total 347 Mb on ./cocoapods
folder, the progress seems to stop and network activity is also stopping.
but after waiting few minutes, turn out that cocoapod is verifying and extracting the repo and makes the total size up to 853 Mb.
notes: I'm doing it on 23 Oct 2016.
I Faced same problem but it work for.I executed the Pod Install Command Before 3 Hour ago after that its updated what i want. You just need to Keep tracking the "Activity Monitor" You can see their "git remote https" or "Git" in disk tab. It will download around 330 Mb then it shows 1 GB and After some minutes it will starts installing. No need to Execute extra command.
Note : during downloading your MAC need to in continuously Active mode.If your system goes in sleep mode then CPU stop the process and you will get a error Like Add manually.
Cocoa pods - reduce wait times to 10% ( on Mac OS ) :
1- type pod setup
in your project folder ( first you have to be in the project folder) from terminal in Mac OS.
2- CTRL+z
to stop after it creates master directory ( folder ) [you can see it in your cocoa pods folder location : ~/.cocoapods/repos]
Download .zip from
https://github.com/CocoaPods/Specs
master branch ( its 301 MB) , Extract it . It will take approx 5-10 mins
4.Copy the content to ~/.cocoapods/repos
( now here you only need to copy the contents inside the master folder , so make sure that master folder is created already with pod setup command )
5- once you copy it ( or I should say move , drag and drop as copying will take forever , as its very large ), you can then do pod install --no-repo-update
6- your pods in the pod file now will start installing
Here is a screenshot
As of cocoapods 1.7.2 you can use the cdn instead of github. It's blazing fast and it won't hang. :) The cdn is default from cocopods 1.8.0 onwards.
To use the CDN source in your Podfile:
If you don't have private specs:
source 'https://cdn.cocoapods.org/'
If you have private specs:
source 'https://github.com/artsy/Specs.git' - source 'https://github.com/CocoaPods/Specs.git' + source 'https://cdn.cocoapods.org/'
Doing this will break your Podfile.lock, so you are likely to need to run pod update to see the changes (be careful, this may update your Pods also).
If you have a CI setup, it is recommended to cache the new repo dir as it is very small and would save even more time. With 1.7.2 it should be located at ~/.cocoapods/repos/cocoapods- (yes, with a -), but we're looking to improve the naming in an upcoming release.
More info:
pod setup
works and should only take 10 mins on a solid connection. After that run: pod install --verbose
and you should see all the comments you would normally see when running a dependancy manager.
Hope that helps