cocoapods-generate icon indicating copy to clipboard operation
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)

Open su350380433 opened this issue 5 years ago • 0 comments

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-OC depends upon Toast, MYLCommonUI, and Masonry, 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 set use_modular_headers! globally in your Podfile, or specify :modular_headers => true for particular dependencies.

thank

su350380433 avatar Jul 31 '20 07:07 su350380433