Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
su350380433 opened this issue Jul 31, 2020 · 0 comments

Comments

@su350380433
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant