Cocoapods: LoadError - no such file to load
Finally found a solution: I'm running old Xcode4 and new Xcode5 in same machine with same projects. At some point I seem to have lost command line tools (and iPhone5 simulator).
Reinstalling command line tools solved the problem for me. Since Xcode 4.6.3 menu item Xcode - Preferences - Downloads - Components
didn't have command-line tools any more for unknown reasons, here is another way to install them:
xcode-select --install
--install
Opens a user interface dialog to request automatic installation of the
command line developer tools.
Now running "pod install" worked just fine.
I also was seeing this. Running this fixed the issue:
sudo gem install cocoapods && pod install
if you are using 10.10 and are seeing this error (/System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib/ruby/2.0.0/rubygems/core_ext/kernel_require.rb:55:) try this
Open Xcode 6 > Preferences > Locations
Command Line Tools version to Xcode 6.0
Uninstall cocoapods/xcodeproj then re-install.
sudo gem uninstall cocoapods
sudo gem uninstall xcodeproj
sudo gem install xcodeproj
sudo gem install cocoapods
pod --version