【发布时间】:2020-07-27 17:12:36
【问题描述】:
我想将我的 Assets.xcassets 添加到我的 pod 中,所以我在我的 podspec 中添加了以下内容
s.source_files = ['Classes/**/*.{h,m,swift,json,strings,xib,storyboard}']
s.resource_bundles = {'mysystem' => 'Classes/Resources/Assets.xcassets'}
执行 pod lib lint 后,我不断收到此错误
- ERROR | [iOS] unknown: Encountered an unknown error (Unable to find other source ref for `Contents.json` for target `mysystem`.) during validation.
这是我的资源文件夹中的样子
我已经尝试了很多不同的其他方法,但都没有奏效:
- 我将 resources_bundles 替换为
s.resources = ['Classes/Resources/Assets.xcassets']
- 我还在我的源文件中添加了 xcassets
s.source_files = ['Classes/**/*.{h,m,swift,json,strings,xib,storyboard, xcassets}']
【问题讨论】: