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

支持SPM #1470

Merged
merged 3 commits into from
Jul 13, 2021
Merged

支持SPM #1470

merged 3 commits into from
Jul 13, 2021

Conversation

iAllenC
Copy link
Contributor

@iAllenC iAllenC commented Oct 16, 2020

1.使用cSettings:[.headerSearchPath]的方式指定头文件搜索路径,避免改动库文件结构
2.使用cSetting:[.define("MJ_USEING_SPM")]方式区分是Cocoapods还是SPM
3.NSBundle_MJRefresh中根据MJ_USEING_SPM宏确定Bundle资源读取方式,确保Cocoapods和SPM安装都可以正确获取资源
4.通过向新建include文件夹,添加头文件软链接的方式公开头文件,避免多次修改头文件

1.使用cSettings:[.headerSearchPath]的方式指定头文件搜索路径,避免改动库文件结构
2.使用cSetting:[.define("MJ_USEING_SPM")]方式区分是Cocoapods还是SPM
3.NSBundle_MJRefresh中根据MJ_USEING_SPM宏确定Bundle资源读取方式,确保Cocoapods和SPM安装都可以正确获取资源
4.通过向新建include文件夹,添加头文件软链接的方式公开头文件,避免多次修改头文件
@wolfcon wolfcon linked an issue Jul 13, 2021 that may be closed by this pull request
@wolfcon wolfcon merged commit 600114a into CoderMJLee:master Jul 13, 2021
This was linked to issues Jul 13, 2021
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

Successfully merging this pull request may close these issues.

SPM 目前暂时还不支持 swift package manager Can MJRefresh Support SPM?
2 participants