test targets and CocoaPods

For my future reference...

  1. Make sure the Podfile link_with value is only the app target, not the tests target.

  2. In the tests target build settings, add "Pods/Public/Headers" as a recursive search path.

If you link_with the tests target, two bad things will happen:

  1. CocoaPods will add a Link Binary With Libraries build phase to the tests target, but the pods are already statically linked with the app target.

  2. CocoaPods will add Pods.xxx.config to the Debug and Release configurations for the tests target, which will add an OTHER_LDFLAGS setting for all of the individual libraries, but the pods are already statically linked with the app target.