Fixes usage of pods in static libraries with Xcode 6.

Fixes #2666.