I tried to find an answer but it seems that it is not possible in the current Cocopods.
My project has iOS 4.3 as its deployment target.
All my pod libraries support 4.3 but one, which I also want to include, taking care off course not to use its classes on iOS 4.3 devices.
I tried using the target option on my Podfile as follows:
platform :ios, '4.3'
target :MyApp do
platform :ios, '5.0'
Which creates the usual libPods.a with NBUCore and a new libPods-MyApp.a with PEPhotoCropEditor, both correctly linked to MyApp.
The problems are:
I have tried with both target :test, :exclusive => true and false, and I could manually modify those files or add $(inherited) flags. But then maybe Cocoapods should take care of that.
target :test, :exclusive => true
#1241 is the correct solution for this.
Which solution @irrationalfab? Manually modifying and maintaining a custom podspec?
@irrationalfab As @rivera-ernesto Which is the best to do? I am running into the same issue with my current project.
Curious, any plans to make this do able in future releases?
I'm doing as described on the issue and manually solving problems 1) and 2), which wasn't hard to do.
On the other hand #1241 suggests directly modifying (and thus maintaining) podspecs which kinda defeats the purpose of centralized podspecs repositories. Also it is not a "solution" but a workaround as stated there.
As for plans, I think there's none despite being a very important missing feature. Maybe at least the issue should be reopened to discuss it.
#1241 is open to solve this issue.