Skip to content

To opt into those targets generating module maps (which is necessary to import them from Swift when building as static libraries) #72

@su350380433

Description

@su350380433

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions