cocoapods-generate
cocoapods-generate copied to clipboard
To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries)
Hi,There is a question, if :modular_headers => true is used, does gen support it?
Here is an example Demo
We have this error here.
Podfile
source 'https://cdn.cocoapods.org/'
platform :ios, '9.0'
target 'Swift-OC' do
#Swift
pod 'Alamofire'
pod 'Moya'
pod 'SnapKit'
pod 'Kingfisher'
pod 'HandyJSON'
pod 'lottie-ios'
pod 'Toast',:modular_headers => true
#OC
pod 'MYLCommonUI', '~> 0.0.11',:modular_headers => true
pod 'Masonry',:modular_headers => true
end
error
The Swift pod
Swift-OCdepends uponToast,MYLCommonUI, andMasonry, which do not define modules. To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries), you may setuse_modular_headers!globally in your Podfile, or specify:modular_headers => truefor particular dependencies.
thank