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'
pod 'NBUCore'
target :MyApp do
platform :ios, '5.0'
pod 'PEPhotoCropEditor'
end
Which creates the usual libPods.a
with NBUCore
and a new libPods-MyApp.a
with PEPhotoCropEditor
, both correctly linked to MyApp.
The problem is that there are two .xcconfig
files, Pods.xcconfig
and Pods-MyApp.xcconfig
but only one of them gets activated by Cocoapods and thus link fails because each has an incomplete OTHER_LDFLAGS
.
I have tried with both target :test, :exclusive => true
and false
.
Off course I could manually modify them, use both or add $(inherited)
flags. But then Cocoapods should take care of that. Or maybe my Podfile syntax is wrong?
Edit: Turns out that also the "Copy Pods Resources" for both Pods and Pods-MyApp would also need to be merged.