CocoaPods/CocoaPods — Issue #144: Add :include_headers_for option
Author: petejkim
Created: 2012-03-01 15:21:57+00:00
State: open

Some targets may only require headers and not actual compiled symbols, for example ocunit target, in order to avoid the dreaded duplicate symbol errors.

For example:

```ruby
platform :ios

dependency 'ASIHTTPRequest', '~> 1.8.1'
dependency 'ConciseKit', '~> 0.1.1'
dependency 'SBJson', '~> 3.0.4'

target :test, :exclusive => true, :include_headers_for => :default do
dependency 'Specta', '~> 0.1.4'
dependency 'Expecta', '~> 0.1.3'
dependency 'OCMock', '~> 1.77.1'
dependency 'OCHamcrest', '~> 1.6'
end
```

this should ideally generate the following `Pods-test.xcconfig` :

```
PODS_ROOT = $(SRCROOT)/Pods
HEADER_SEARCH_PATHS = "$(PODS_ROOT)/Headers" "$(PODS_ROOT)/Headers/ASIHTTPRequest" "$(PODS_ROOT)/Headers/ConciseKit" "$(PODS_ROOT)/Headers/Expecta" "$(PODS_ROOT)/Headers/OCHamcrest" "$(PODS_ROOT)/Headers/OCMock" $(PODS_ROOT)/Headers/Reachability" "$(PODS_ROOT)/Headers/SBJson" "$(PODS_ROOT)/Headers/Specta"
ALWAYS_SEARCH_USER_PATHS = YES
OTHER_LDFLAGS = -ObjC -all_load -framework Foundation -ObjC -framework Foundation -framework SenTestingKit
FRAMEWORK_SEARCH_PATHS = "$(DEVELOPER_FRAMEWORKS_DIR)"
LD_RUNPATH_SEARCH_PATHS = "$(DEVELOPER_FRAMEWORKS_DIR)"
```

i.e. including headers for dependencies defined in the `:default` target, but without having those dependencies compiled in libPods-Test.a

I tried hacking some code to add this functionality on my own, but I am having trouble running the specs...

Could someone help implement this, or at least help me do it?