I am able to install cocoaPods via sudo gem install cocoaPods, but after that when i tired with "pod init" in my xcode project, i get an error. Please let me know , how to resolve it. Below is the terminal o/p
Subexs-Mac-mini:ios SUBEXMacMini$ pod init
โโโ MARKDOWN TEMPLATE โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
/usr/local/bin/pod init
What did you do?
What did you expect to happen?
What happened instead?
CocoaPods : 1.1.1
Ruby : ruby 2.0.0p648 (2015-12-16 revision 53162) [universal.x86_64-darwin15]
RubyGems : 2.0.14.1
Host : Mac OS X 10.11.6 (15G1108)
Xcode : 8.1 (8B62)
Git : git version 2.9.3 (Apple Git-75)
Ruby lib dir : /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ f43d5dc574bb7d82608d90a1e9fb7eaa184c4bce
cocoapods-clean : 0.0.1
cocoapods-deintegrate : 1.0.1
cocoapods-plugins : 1.0.0
cocoapods-search : 1.0.0
cocoapods-stats : 1.0.0
cocoapods-trunk : 1.1.1
cocoapods-try : 1.1.0
LoadError - cannot load such file -- nanaimo
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/plist.rb:23:in `read_from_path'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/project.rb:200:in `initialize_from_file'
/Library/Ruby/Gems/2.0.0/gems/xcodeproj-1.4.1/lib/xcodeproj/project.rb:102:in `open'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command/init.rb:41:in `validate!'
/Library/Ruby/Gems/2.0.0/gems/claide-1.0.1/lib/claide/command.rb:333:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/lib/cocoapods/command.rb:50:in `run'
/Library/Ruby/Gems/2.0.0/gems/cocoapods-1.1.1/bin/pod:55:in `<top (required)>'
/usr/local/bin/pod:23:in `load'
/usr/local/bin/pod:23:in `<main>'
โโโ TEMPLATE END โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
[!] Oh no, an error occurred.
Search for existing GitHub issues similar to yours:
https://github.com/CocoaPods/CocoaPods/search?q=cannot+load+such+file+--+nanaimo&type=Issues
If none exists, create a ticket, with the template displayed above, on:
https://github.com/CocoaPods/CocoaPods/issues/new
Be sure to first read the contributing guide for details on how to properly submit a ticket:
https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md
Don't forget to anonymize any private data!
Looking for related issues on cocoapods/cocoapods...
help! cannot load such file -- nanaimo
https://github.com/CocoaPods/CocoaPods/issues/6312 [closed] [2 comments]
4 days ago
LoadError - cannot load such file -- nanaimo
https://github.com/CocoaPods/CocoaPods/issues/6281 [closed] [2 comments]
2 weeks ago
and 4 more at:
https://github.com/cocoapods/cocoapods/search?q=cannot%20load%20such%20file%20--%20nanaimo&type=Issues&utf8=โ
It appears that something is wrong with your CocoaPods install. Can you try running gem uninstall cocoapods
until you can uninstall all of the CocoaPods on your machine, and then run gem install cocoapods --pre
(since it appears you're using a beta version) to install the latest CocoaPods again? Thanks!
i have fixed
sudo gem uninstall nanaimo
sudo gem install nanaimo
sudo gem install cocoapods
pod init
pod install
I am sure that the following will work perfectly. Kindly to go this file in your xcode project project.pbxproj
Remove following
inputFileListPaths = (
);
outputFileListPaths = (
);
After removing you can able to do whatever you want in pod.
Thank you!! Cheers!!!
Most helpful comment
i have fixed
sudo gem uninstall nanaimo
sudo gem install nanaimo
sudo gem install cocoapods
pod init
pod install