alloy/cocoapods — Issue #34: `pod install` fails with binary built from `rake standalone`
Author: nolanw
Created: 2011-10-25 08:37:24+00:00
State: open

Here's what I did:

1. Create new Xcode project (e.g. iOS > Empty Application) and add a little Podfile (`platform :ios`, `dependency 'ASIHTTPRequest'`).
2. `$ git clone git://github.com/alloy/cocoapods.git && cd cocoapods && rake standalone`

Here's what I got:

$ cd ../App && ../cocoapods/pod install --verbose
Installing dependencies of: /Users/nolanw/Desktop/App/Podfile
==> Installing: `ASIHTTPRequest' version `1.8.1'
* Downloading: `ASIHTTPRequest' version `1.8.1'
git init
Initialized empty Git repository in /Users/nolanw/Desktop/App/Pods/ASIHTTPRequest/.git/
git remote add origin 'https://github.com/pokeb/asi-http-request.git'
git fetch origin tags/v1.8.1
remote: Counting objects: 5295, done.
remote: Compressing objects: 100% (1376/1376), done.
remote: Total 5295 (delta 4064), reused 4991 (delta 3817)
Receiving objects: 100% (5295/5295), 2.80 MiB | 539 KiB/s, done.
Resolving deltas: 100% (4064/4064), done.
From https://github.com/pokeb/asi-http-request
* tag v1.8.1 -> FETCH_HEAD
git reset --hard FETCH_HEAD
HEAD is now at 404bbfe Comment tweak to make the behaviour a tiny bit clearer
git checkout -b activated-pod-commit
Switched to a new branch 'activated-pod-commit'
==> Installing: `Reachability' version `2.0.4'
* Skipping download of `ASIHTTPRequest' version `1.8.1', pod already downloaded
==> Generating Xcode project and xcconfig
Oh no, an error occurred. Please run with `--verbose' and report on https://github.com/alloy/cocoapods/issues.

undefined method `[]' for nil:NilClass

I tracked it down to [installer.rb line 42](https://github.com/alloy/cocoapods/blob/master/lib/cocoapods/installer.rb#L42), `group = xcodeproj.add_pod_group(spec.name)`, but that's as far as I got.