ios - mac - cocoapods install
cocoapods no instala (4)
¿Qué significa y cómo puedo solucionarlo?
pod install
/Library/Ruby/Site/2.0.0/rubygems.rb:250:in `find_spec_for_exe'': can''t find gem cocoapods (>= 0.a) (Gem::GemNotFoundException)
from /Library/Ruby/Site/2.0.0/rubygems.rb:278:in `activate_bin_path''
from /usr/local/bin/pod:22:in `<main>''
Desinstale los cocoapods
existentes, si los hay, siguiendo el comando:
gem list --local | grep cocoapods | awk ''{print $1}'' | xargs sudo gem uninstall
Luego instálelo en /usr/local/bin
lugar de /usr/bin
usando el siguiente comando:
sudo gem install -n /usr/local/bin cocoapods
Para consultas adicionales, revise este enlace para desinstalar y este enlace para instalar cocoapods.
Prueba la sudo gem update
- Después de retirar los cocoápodos.
- -Instalar cocoápodos
Si instala cocoapod usando brew como yo
- Reinstalar cocoapods
brew reinstall cocoapods
Si ve este mensaje de error después de volver a instalar cocoapods brew reinstall
vaya al paso 2.
>
Error: The `brew link` step did not complete successfully
The formula built, but is not symlinked into /usr/local
Could not symlink bin/pod
Target /usr/local/bin/pod
already exists. You may want to remove it:
rm ''/usr/local/bin/pod''
To force the link and overwrite all conflicting files:
brew link --overwrite cocoapods
To list all files that would be deleted:
brew link --overwrite --dry-run cocoapods
Possible conflicting files are:
/usr/local/bin/pod
/usr/local/bin/xcodeproj
- Para resolver archivos conflictivos.
brew link --overwrite cocoapods
> Linking /usr/local/Cellar/cocoapods/1.3.1... 2 symlinks created
Espero eso ayude.
Usa los siguientes comandos, y funciona para ti.
1: sudo gem uninstall cocoapods
2: gem install cocoapods
3: pod install
Actualizar:
sudo gem install -n /usr/local/bin GEM_NAME_HERE