CocoaPods/CocoaPods — Issue #130: undefined method `[]' for nil:NilClass
Author: marcelofabri
Created: 2012-02-21 01:32:35+00:00
State: open

Hi guys,

I just updated from 0.3.10 to 0.5.0, but I'm getting this error whenever I do a pod install:

pod install project.xcodeproj/ --verbose
Updating spec repo `master'
/usr/bin/git pull
Already up-to-date.
Installing dependencies of: /Users/marcelofabri/myProject/Podfile
Using AFNetworking (0.9.0)
Using EGOCache (0.1.0)
Using Facebook-iOS-SDK (0.0.1)
Using JSONKit (1.4)
Using MBProgressHUD (0.41)
Oh no, an error occurred. Please run with `--verbose' and report on https://github.com/CocoaPods/CocoaPods/issues.

undefined method `[]' for nil:NilClass
/Library/Ruby/Gems/1.8/gems/cocoapods-0.5.0/lib/cocoapods/specification.rb:157:in `local?'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.5.0/lib/cocoapods/installer.rb:58:in `install_dependencies!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.5.0/lib/cocoapods/installer.rb:57:in `each'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.5.0/lib/cocoapods/installer.rb:57:in `install_dependencies!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.5.0/lib/cocoapods/installer.rb:75:in `install!'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.5.0/lib/cocoapods/command/install.rb:44:in `run'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.5.0/lib/cocoapods/command.rb:53:in `run'
/Library/Ruby/Gems/1.8/gems/cocoapods-0.5.0/bin/pod:10
/usr/bin/pod:19:in `load'
/usr/bin/pod:19

Before install this version, I deleted the old one, doing macgem uninstall cocoapods.

I don't know if it's helpful, but I'm using OS X Lion, and XCode 4.3.

Thanks!