Cocoapods:包含资源文件夹Assets.xcassets的pod的问题 [英] Cocoapods : Issue with pod which contains resource folder Assets.xcassets

查看:988
本文介绍了Cocoapods:包含资源文件夹Assets.xcassets的pod的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建自己的椰壳动物。如屏幕截图所示,我遇到了错误。我认为Assets.xcassets文件夹链接存在一些问题。万一assets.xcassets文件夹中没有图像,则没有问题。当我在资产中添加任何图像时,将针对这些图像自动生成contents.json,然后开始出现以下问题。

I am creating my own cocoapods. I am getting an error as shown in screenshot. I think , there is some issue with Assets.xcassets folder linking. In case, there is no image in assets.xcassets folder, then there is no issue with it. When I am adding any image in assets, then contents.json will be generated automatically with respect to those images, and then this below issue started coming.

推荐答案

我已经修改了这两行,现在可以使用了。

I have modified these two lines and now it's working.

s.source_files ='ECGame / ** / *。{swift,plist}'
s.resources ='ECGame / ** / *。{storyboard ,xib,xcassets,json,png}'

这篇关于Cocoapods:包含资源文件夹Assets.xcassets的pod的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆