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

Weibo_SDK.podspec 的 source_files 填写有误! #509

Open
kuopenx opened this issue Nov 26, 2022 · 0 comments
Open

Weibo_SDK.podspec 的 source_files 填写有误! #509

kuopenx opened this issue Nov 26, 2022 · 0 comments

Comments

@kuopenx
Copy link
Contributor

kuopenx commented Nov 26, 2022

我从 3.3.2 版本升级到 3.3.5 版本之后,发现编译报错了,错误信息如下:

module 'Weibo_SDK' was built in directory '/Users/' but now resides in directory '/Users//Library/Developer/Xcode/DerivedData/AHWeiboSDK-efoooozhmeaucecfufrekolvdmjz/Build/Products/Debug-iphonesimulator/Weibo_SDK/Weibo_SDK.framework'

我使用pod的方式:我给微博 sdk 添加了 modular header,方便让 swift 代码 import moduleName

查看了下生成的 pod 文件结构发生了变化,原因是最新版本的 podspec 把 .a 文件当成了源文件,被定义为 vendored_libraries 不应该再被当成源文件了,建议修改过来。

3.3.2 版本的 podspec:

s.source_files = 'libWeiboSDK/*.{h,m}'
s.resource     = 'libWeiboSDK/WeiboSDK.bundle'
s.vendored_libraries  = 'libWeiboSDK/libWeiboSDK.a'

3.3.5 版本的 podspec:

s.source_files = 'libWeiboSDK/*.{h,m,a}'
s.resource     = 'libWeiboSDK/WeiboSDK.bundle'
s.vendored_libraries  = 'libWeiboSDK/libWeiboSDK.a'

我自己 fork 并修改过来以后,编译就通过了,已经提交了 pr。

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