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

package swift static library #255

Open
huFly opened this issue Jun 4, 2020 · 7 comments
Open

package swift static library #255

huFly opened this issue Jun 4, 2020 · 7 comments

Comments

@huFly
Copy link

huFly commented Jun 4, 2020

Scenes:my project complete with swift an objective-c,and also have other Third-party dependency,like AFNetworking write in objective-c

it is worked well when push remote pod repo by source code. In the other hand,I want to package a static library,but always fails...

when I exec
pod package MyProject.podspec --force --no-mangle --spec-sources=https://cdn.cocoapods.org/ , I got an error:

[!] The following Swift pods cannot yet be integrated as static libraries:

The Swift pod `BaseCore` depends upon `AFNetworking`, `UICKeyChainStore`, `MBProgressHUD`, and `SDWebImage`, 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.

But the podfile already have a use_modular_headers! And my podspec file also seted 'DEFINES_MODULE' => 'YES'

what should I do? Is it possible to modify the podspec of these third-party libraries?(crazy.....)

@dabing1022
Copy link

You could try --exclude-deps option

@cheng-ren
Copy link

the same problem!

@ShenYj
Copy link

ShenYj commented Dec 24, 2020

我是纯swift的sdk项目, 似乎并不支持

@yangshebing
Copy link

I modified the source code and set use_modular_headers! directly in the place where podflie is generated.

@liushengxu
Copy link

请问解决了吗

@ws745630
Copy link

ws745630 commented Dec 19, 2022

我修改了源代码并设置了use_modular_headers!直接在生成podflie的地方。

请问你是修改的pod package的源码吗?如果是,请麻烦告诉我修改了哪里!

@ws745630
Copy link

请问你解决了吗

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

7 participants