CocoaPods on Yosemite needs UTF-8 encoding

Created on 14 Oct 2014  路  8Comments  路  Source: CocoaPods/CocoaPods

Came here because I (almost) got this error when i tried to do pod install:

NoMethodError - undefined method `repo' for nil:NilClass

I checked out a project, but now on Yosemite and could not do a 'pod install' anymore..

What I tried:

  • uninstall xcodeproj
  • uninstall cocoapods
  • reinstall homebrew
  • reinstall ruby
  • reinstall xcodeproj
  • reinstall cocoapods

But I stil got this error.
Then, after 4 hours of debugging and trying, I got this warning after I did pod --version

WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.

FIX: So I added the following to my ~/.bash_profile__ :

export LC_ALL="en_US.UTF-8"

P.S: This warning _only_ comes up when doing
pod --version
So, please include this UTF-8 warning when doing a _pod install_ too ;)

Most helpful comment

I get this warning with both pod versoin and pod install and it does NOT go away, even adding the suggested export LANG=en_US.UTF-8 to ~/.profile and/or ~/.bash_profile and restarting Terminal. Using OS X El Capitan.

All 8 comments

I can confirm I can see this when the LANG environmental variable is not set to UTF-8.

$ set LANG "C"
$ pod --help
WARNING: CocoaPods requires your terminal to be using UTF-8 encoding.
See https://github.com/CocoaPods/guides.cocoapods.org/issues/26 for
possible solutions.

@domingguss I see no way this warning could only be shown for pod --version and not any other command.

this happened on Yosemite and I was asked to file a new issue, see
https://github.com/CocoaPods/CocoaPods/issues/2634#issuecomment-59041077

I'm running Yosemite and was unable to reproduce

it only happens when I use pods from our private spec repository, which is hosted on a network disk

Can you provide a reproducible setup for one of us to try? If not, there's not much we can do.

I get this warning with both pod versoin and pod install and it does NOT go away, even adding the suggested export LANG=en_US.UTF-8 to ~/.profile and/or ~/.bash_profile and restarting Terminal. Using OS X El Capitan.

Was this page helpful?
0 / 5 - 0 ratings