iOS_cocoa pods安装失败的奇奇怪怪的问题解决方案

好好看  能遇到的奇葩问题都在里面了  最后还是挣扎出来了

Last login: Thu Nov 26 14:40:43 on ttys000

Look-your-sister:~ remonlv$ gem sources -a https://ruby.taobao.org/

https://ruby.taobao.org/ added to sources

Look-your-sister:~ remonlv$ gem source

*** CURRENT SOURCES ***

https://ruby.taobao.org/

Look-your-sister:~ remonlv$ sudo gem install cocoapods

Password:

ERROR:  While executing gem ... (Errno::EPERM)

Operation not permitted - /usr/bin/pod

Look-your-sister:~ remonlv$ sudo gem install -n /usr/local/bin cocoapods

Successfully installed cocoapods-0.39.0

Parsing documentation for cocoapods-0.39.0

1 gem installed

Look-your-sister:~ remonlv$ pod search AFNetworking

-bash: pod: command not found

Look-your-sister:~ remonlv$ gem install cocoapods

ERROR:  While executing gem ... (Gem::FilePermissionError)

You don't have write permissions for the /Library/Ruby/Gems/2.0.0 directory.

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ sudo chmod 777 /Library/Ruby/Gems/2.0.0

Look-your-sister:~ remonlv$ gem install cocoapods

ERROR:  While executing gem ... (Errno::EACCES)

Permission denied - /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/command/cache/clean.rb

Look-your-sister:~ remonlv$ sudo chown -R mac ~Look-your-sister:~ remonlv$

chown: mac: illegal user name

Look-your-sister:~ remonlv$ Look-your-sister:~ remonlv$ sudo chmod 777 /Library/Ruby/Gems/2.0.0

-bash: Look-your-sister:~: command not found

Look-your-sister:~ remonlv$ Look-your-sister:~ remonlv$ gem install cocoapods

-bash: Look-your-sister:~: command not found

Look-your-sister:~ remonlv$ ERROR:  While executing gem ... (Errno::EACCES)

-bash: syntax error near unexpected token `('

Look-your-sister:~ remonlv$     Permission denied - /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/command/cache/clean.rb

-bash: Permission: command not found

Look-your-sister:~ remonlv$ Look-your-sister:~ remonlv$

-bash: Look-your-sister:~: command not found

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ sodu chown -R mac ~/Library/Caches/CocoaPods/

-bash: sodu: command not found

Look-your-sister:~ remonlv$ sudo chown -R mac ~/Library/Caches/CocoaPods/

chown: mac: illegal user name

Look-your-sister:~ remonlv$ sudo chown -R mac ~/.cocoapods

chown: mac: illegal user name

Look-your-sister:~ remonlv$ gem install cocoapods

ERROR:  While executing gem ... (Errno::EACCES)

Permission denied - /Library/Ruby/Gems/2.0.0/gems/cocoapods-0.39.0/lib/cocoapods/command/cache/clean.rb

Look-your-sister:~ remonlv$ pod setup

-bash: pod: command not found

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ sudo gem uninstall cocoapods

Password:

Select gem to uninstall:

1. cocoapods-0.36.4

2. cocoapods-0.39.0

3. All versions

>

Error: must enter a number [1-3]

Look-your-sister:~ remonlv$ 3

-bash: 3: command not found

Look-your-sister:~ remonlv$ sudo gem uninstall cocoapods

Select gem to uninstall:

1. cocoapods-0.36.4

2. cocoapods-0.39.0

3. All versions

> 3

Successfully uninstalled cocoapods-0.36.4

Remove executables:

pod, sandbox-pod

in addition to the gem? [Yn]  y

Removing pod

Removing sandbox-pod

Successfully uninstalled cocoapods-0.39.0

Look-your-sister:~ remonlv$ sudo gem uninstall cocoapods

Look-your-sister:~ remonlv$ pod install

-bash: pod: command not found

Look-your-sister:~ remonlv$ gem install cocoapods

Fetching: cocoapods-0.39.0.gem (100%)

ERROR:  While executing gem ... (Errno::EACCES)

Permission denied - /Library/Ruby/Gems/2.0.0/cache/cocoapods-0.39.0.gem

Look-your-sister:~ remonlv$ pod search AFNetworking

-bash: pod: command not found

Look-your-sister:~ remonlv$ sudo gem uninstall cocoapods

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ sudo gem uninstall cocoapods

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ sudo gem install -n /usr/local/bin cocoapods

Fetching: cocoapods-0.39.0.gem (100%)

Successfully installed cocoapods-0.39.0

Parsing documentation for cocoapods-0.39.0

Installing ri documentation for cocoapods-0.39.0

1 gem installed

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ pod search AFNetworking

-bash: pod: command not found

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ sudo gem uninstall cocoapods

Remove executables:

pod, sandbox-pod

in addition to the gem? [Yn]  y

Removing pod

Removing sandbox-pod

Successfully uninstalled cocoapods-0.39.0

Look-your-sister:~ remonlv$ sudo gem uninstall xcodeproj

Select gem to uninstall:

1. xcodeproj-0.23.1

2. xcodeproj-0.28.2

3. All versions

> 3

Successfully uninstalled xcodeproj-0.23.1

Remove executables:

xcodeproj

in addition to the gem? [Yn]  y

Removing xcodeproj

Successfully uninstalled xcodeproj-0.28.2

Look-your-sister:~ remonlv$ sudo gem uninstall xcodeproj

Look-your-sister:~ remonlv$ sudo gem uninstall cocoapods

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ sudo gem install xcodeproj

Fetching: xcodeproj-0.28.2.gem (100%)

ERROR:  While executing gem ... (Errno::EPERM)

Operation not permitted - /usr/bin/xcodeproj

Look-your-sister:~ remonlv$ sudo gem install -n /usr/bin/xcodeproj

ERROR:  While executing gem ... (Gem::CommandLineError)

Please specify at least one gem name (e.g. gem build GEMNAME)

Look-your-sister:~ remonlv$ sudo gem install - /usr/bin/xcodeproj

ERROR:  Could not find a valid gem '/usr/bin/xcodeproj' (>= 0) in any repository

^[[A^[[A^[[A

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ sudo gem install xcodeproj

^CERROR:  Interrupted

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ sudo gem install xcodeproj

ERROR:  While executing gem ... (Errno::EPERM)

Operation not permitted - /usr/bin/xcodeproj

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ mkdir -p $HOME/Software/ruby

Look-your-sister:~ remonlv$ export GEM_HOME=$HOME/Software/ruby

Look-your-sister:~ remonlv$ gem install cocoapods

Fetching: xcodeproj-0.28.2.gem (100%)

Successfully installed xcodeproj-0.28.2

Fetching: cocoapods-0.39.0.gem (100%)

Successfully installed cocoapods-0.39.0

Parsing documentation for xcodeproj-0.28.2

Installing ri documentation for xcodeproj-0.28.2

Parsing documentation for cocoapods-0.39.0

Installing ri documentation for cocoapods-0.39.0

2 gems installed

Look-your-sister:~ remonlv$ export PATH=$PATH:$HOME/Software/ruby/bin

Look-your-sister:~ remonlv$ pod --version

0.39.0

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ pod search AFNetworking

-> AFNetworking (2.6.0)

A delightful iOS and OS X networking framework.

pod 'AFNetworking', '~> 2.6.0'

- Homepage: https://github.com/AFNetworking/AFNetworking

- Source:   https://github.com/AFNetworking/AFNetworking.git

- Versions: 2.5.3, 2.5.2, 2.5.1, 2.5.0, 2.4.1, 2.4.0, 2.3.1, 2.3.0, 2.2.4, 2.2.3,

2.2.2, 2.2.1, 2.2.0, 2.1.0, 2.0.3, 2.0.2, 2.0.1, 2.0.0, 2.0.0-RC3, 2.0.0-RC2,

2.0.0-RC1, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.1, 1.2.0, 1.1.0, 1.0.1, 1.0,

1.0RC3, 1.0RC2, 1.0RC1, 0.10.1, 0.10.0, 0.9.2, 0.9.1, 0.9.0, 0.7.0, 0.5.1 [master

repo] - 2.6.0, 2.5.4, 2.5.3, 2.5.2, 2.5.1, 2.5.0, 2.4.1, 2.4.0, 2.3.1, 2.3.0,

2.2.4, 2.2.3, 2.2.2, 2.2.1, 2.2.0, 2.1.0, 2.0.3, 2.0.2, 2.0.1, 2.0.0, 2.0.0-RC3,

2.0.0-RC2, 2.0.0-RC1, 1.3.4, 1.3.3, 1.3.2, 1.3.1, 1.3.0, 1.2.1, 1.2.0, 1.1.0,

1.0.1, 1.0, 1.0RC3, 1.0RC2, 1.0RC1, 0.10.1, 0.10.0, 0.9.2, 0.9.1, 0.9.0, 0.7.0,

0.5.1 [master-1 repo]

- Subspecs:

- AFNetworking/Serialization (2.6.0)

- AFNetworking/Security (2.6.0)

- AFNetworking/Reachability (2.6.0)

- AFNetworking/NSURLConnection (2.6.0)

- AFNetworking/NSURLSession (2.6.0)

- AFNetworking/UIKit (2.6.0)

-> AFNetworking+AutoRetry (0.0.5)

Auto Retries for AFNetworking requests

pod 'AFNetworking+AutoRetry', '~> 0.0.5'

- Homepage: https://github.com/shaioz/AFNetworking-AutoRetry

- Source:   https://github.com/shaioz/AFNetworking-AutoRetry.git

- Versions: 0.0.5, 0.0.4, 0.0.3, 0.0.2, 0.0.1 [master repo] - 0.0.5, 0.0.4, 0.0.3,

0.0.2, 0.0.1 [master-1 repo]

-> AFNetworking+Ext (1.2.1)

AFNetworking的封装, 并提供一个 UIImageView+DYLoading  cache in fileSystem+memory

pod 'AFNetworking+Ext', '~> 1.2.1'

- Homepage: https://github.com/junhaiyang/AFNetworkingExt

- Source:   https://github.com/junhaiyang/AFNetworkingExt.git

- Versions: 1.2, 1.1, 1.0, 0.5, 0.4, 0.3 [master repo] - 1.2.1, 1.2, 1.1, 1.0, 0.5,

0.4, 0.3 [master-1 repo]

- Subspecs:

- AFNetworking+Ext/Base (1.2.1)

- AFNetworking+Ext/AFCustomRequestOperation (1.2.1)

- AFNetworking+Ext/AFDownloadRequestOperation (1.2.1)

- AFNetworking+Ext/AFTextResponseSerializer (1.2.1)

- AFNetworking+Ext/example (1.2.1)

- AFNetworking+Ext/UIKit (1.2.1)

- AFNetworking+Ext/UIKit/UIImageView+DYLoading (1.2.1)

-> AFNetworking+ImageActivityIndicator (1.0.1)

AFNetworking+ImageActivityIndicator makes it easy to show an activity indicator

while an image view's image is loading using AFNetworking.

pod 'AFNetworking+ImageActivityIndicator', '~> 1.0.1'

- Homepage: https://github.com/JRG-Developer/AFNetworking-ImageActivityIndicator

- Source:

https://github.com/JRG-Developer/AFNetworking-ImageActivityIndicator.git

- Versions: 1.0.1, 1.0.0 [master repo] - 1.0.1, 1.0.0 [master-1 repo]

-> AFNetworking+SingleBlock (0.0.1)

Categories that aggregate the success and failure block in one single solution

pod 'AFNetworking+SingleBlock', '~> 0.0.1'

- Homepage: https://github.com/acerbetti/AFNetworking-SingleBlock

- Source:   https://github.com/acerbetti/AFNetworking-SingleBlock.git

- Versions: 0.0.1 [master repo] - 0.0.1 [master-1 repo]

-> AFNetworking+streaming (0.6.2)

A very quick extension to AFNetworking that adds stream based parsing

pod 'AFNetworking+streaming', '~> 0.6.2'

- Homepage: https://github.com/deanWombourne/AFNetworking-streaming

- Source:   https://github.com/deanWombourne/AFNetworking-streaming.git

- Versions: 0.6.2, 0.6.1, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1 [master repo] - 0.6.2,

0.6.1, 0.6, 0.5, 0.4, 0.3, 0.2, 0.1 [master-1 repo]

- Subspecs:

- AFNetworking+streaming/Core (0.6.2)

- AFNetworking+streaming/Json (0.6.2)

-> AFNetworking-MUResponseSerializer (1.0.1)

Automatically serialize JSON response to your object model. It also works with

NSManagedObjects

pod 'AFNetworking-MUResponseSerializer', '~> 1.0.1'

- Homepage: https://github.com/Ulianko/AFNetworking-MUResponseSerializer

- Source:   https://github.com/Ulianko/AFNetworking-MUResponseSerializer.git

- Versions: 1.0.1, 1.0.0 [master repo] - 1.0.1, 1.0.0 [master-1 repo]

-> AFNetworking-RACExtensions (0.1.8)

AFNetworking-RACExtensions is a delightful extension to the AFNetworking classes

for iOS and Mac OS X.

pod 'AFNetworking-RACExtensions', '~> 0.1.8'

- Homepage: https://github.com/CodaFi/AFNetworking-RACExtensions

- Source:   https://github.com/CodaFi/AFNetworking-RACExtensions.git

- Versions: 0.1.6, 0.1.4, 0.1.2, 0.1.1, 0.0.1 [master repo] - 0.1.8, 0.1.6, 0.1.4,

0.1.2, 0.1.1, 0.0.1 [master-1 repo]

-> AFNetworking-RACRetryExtensions (0.2.0)

AFNetworking-RACRetryExtensions is an extension to the AFNetworking classes for iOS

and Mac OS X that adds the auto-retry ability.

pod 'AFNetworking-RACRetryExtensions', '~> 0.2.0'

- Homepage: https://github.com/legoless/AFNetworking-RACRetryExtensions

- Source:   https://github.com/legoless/AFNetworking-RACRetryExtensions.git

- Versions: 0.2.0, 0.1.2, 0.1.1 [master repo] - 0.2.0, 0.1.2, 0.1.1 [master-1 repo]

-> AFNetworking-ReactiveCocoa (0.0.2)

Make AFNetworking reactive.

pod 'AFNetworking-ReactiveCocoa', '~> 0.0.2'

- Homepage: https://github.com/uasi/AFNetworking-ReactiveCocoa

- Source:   https://github.com/uasi/AFNetworking-ReactiveCocoa.git

- Versions: 0.0.2, 0.0.1 [master repo] - 0.0.2, 0.0.1 [master-1 repo]

-> AFNetworking-Synchronous (0.3.1)

Synchronous requests for AFNetworking

pod 'AFNetworking-Synchronous', '~> 0.3.1'

- Homepage: https://github.com/paulmelnikow/AFNetworking-Synchronous

- Source:   https://github.com/paulmelnikow/AFNetworking-Synchronous.git

- Versions: 0.3.1, 0.3.0, 0.2.0, 0.1.0 [master repo] - 0.3.1, 0.3.0, 0.2.0, 0.1.0

[master-1 repo]

- Subspecs:

- AFNetworking-Synchronous/1.x (0.3.1)

- AFNetworking-Synchronous/2.x (0.3.1)

-> AFNetworking2-RACExtensions (0.0.1)

AFNetworking-RACExtensions is a delightful extension to the AFNetworking classes

for iOS and Mac OS X.

pod 'AFNetworking2-RACExtensions', '~> 0.0.1'

- Homepage: https://github.com/knshiro/AFNetworking-RACExtensions

- Source:   https://github.com/knshiro/AFNetworking-RACExtensions.git

- Versions: 0.0.1 [master repo] - 0.0.1 [master-1 repo]

-> AFNetworkingHelper (0.1.4)

A short wrapper written over AFNetworking library.

pod 'AFNetworkingHelper', '~> 0.1.4'

- Homepage: https://github.com/RainingClouds/AFNetworkingHelper

- Source:   https://github.com/RainingClouds/AFNetworkingHelper.git

- Versions: 0.1.4, 0.1.3, 0.1.2, 0.1.1, 0.1.0 [master repo] - 0.1.4, 0.1.3, 0.1.2,

0.1.1, 0.1.0 [master-1 repo]

-> CollectionUtils-AFNetworking (1.0.1)

CollectionUtils additions for AFNetworking.

pod 'CollectionUtils-AFNetworking', '~> 1.0.1'

- Homepage: https://github.com/kishikawakatsumi/CollectionUtils

- Source:   https://github.com/kishikawakatsumi/CollectionUtils.git

- Versions: 1.0.1, 1.0.0 [master repo] - 1.0.1, 1.0.0 [master-1 repo]

-> CollectionUtils-AFNetworking-1.3 (1.0.1)

CollectionUtils additions for AFNetworking 1.3.x.

pod 'CollectionUtils-AFNetworking-1.3', '~> 1.0.1'

- Homepage: https://github.com/kishikawakatsumi/CollectionUtils

- Source:   https://github.com/kishikawakatsumi/CollectionUtils.git

- Versions: 1.0.1, 1.0.0 [master repo] - 1.0.1, 1.0.0 [master-1 repo]

-> HYVConfiguratorAFNetworking-Mantle (0.4.1)

Configurator for using AFNetworking with Mantle

pod 'HYVConfiguratorAFNetworking-Mantle', '~> 0.4.1'

- Homepage: https://github.com/LilushFess/HYVConfiguratorAFNetworking-Mantle.git

- Source:   https://github.com/LilushFess/HYVConfiguratorAFNetworking-Mantle.git

- Versions: 0.4.1, 0.4, 0.3.1, 0.3.0, 0.2.1, 0.2.0, 0.1.4, 0.1.3.2, 0.1.3.1, 0.1.3,

0.1.2.2, 0.1.2, 0.1.1.42, 0.1.0 [master repo] - 0.4.1, 0.4, 0.3.1, 0.3.0, 0.2.1,

0.2.0, 0.1.4, 0.1.3.2, 0.1.3.1, 0.1.3, 0.1.2.2, 0.1.2, 0.1.1.42, 0.1.0 [master-1

repo]

-> Haneke+AFNetworking (0.2.0)

Haneke extension to use AFNetworking to download images.

pod 'Haneke+AFNetworking', '~> 0.2.0'

- Homepage: https://github.com/Haneke/Haneke-AFNetworking

- Source:   https://github.com/Haneke/Haneke-AFNetworking.git

- Versions: 0.2.0 [master repo] - 0.2.0 [master-1 repo]

-> PromiseKit-AFNetworking (0.1.6)

PromiseKit extensions for AFNetworking

pod 'PromiseKit-AFNetworking', '~> 0.1.6'

- Homepage: https://github.com/csotiriou/AFNetworking-PromiseKit/

- Source:   https://github.com/csotiriou/AFNetworking-PromiseKit.git

- Versions: 0.1.6, 0.1.5, 0.1.4, 0.1.3, 0.1.2, 0.1.1 [master repo] - 0.1.6, 0.1.5,

0.1.4, 0.1.3, 0.1.2, 0.1.1 [master-1 repo]

-> AFNetworking-PromiseKit (0.2.4)

AFNetworking category for PromiseKit

pod 'AFNetworking-PromiseKit', '~> 0.2.4'

- Homepage: https://github.com/cmckni3/AFNetworking-PromiseKit

- Source:   https://github.com/cmckni3/AFNetworking-PromiseKit.git

- Versions: 0.2.4, 0.2.3, 0.2.2, 0.2.1, 0.2.0, 0.1.0 [master-1 repo]

-> AFNetworking-Webp (0.2)

A Webp image response serializer for AFNetworking 2.0

pod 'AFNetworking-Webp', '~> 0.2'

- Homepage: https://github.com/brandons/AFNetworking-Webp

- Source:   https://github.com/brandons/AFNetworking-Webp.git

- Versions: 0.2, 0.1 [master-1 repo]

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$

Look-your-sister:~ remonlv$ gem install xcodeproj

Successfully installed xcodeproj-0.28.2

Parsing documentation for xcodeproj-0.28.2

1 gem installed

Look-your-sister:~ remonlv$

你可能感兴趣的:(iOS_cocoa pods安装失败的奇奇怪怪的问题解决方案)