【发布时间】:2019-04-27 16:40:42
【问题描述】:
我正在使用可可豆荚发布我的代码。我确实使用很少的 png 图像作为图像资产,很少使用 pdf 矢量图像作为图像视图。 png 和 pdf 都在 "image.xcassets"
下我的 podspec 目前使用以下代码指定捆绑包
myApp.resource_bundle = {
"myApp" => "project/app/Assets/**/*.{storyboard,xib,strings,xcassets}"
}
我的问题是,因为我所有的 png 和 pdf 图像都在 image.assets 中,我是否需要单独指定资源包下的那些,或者因为我确实指定了 xcassets,所以它会得到照顾。我的意思是 xcassets 下的所有内容都将被包含?
解决方案 1
myApp.resource_bundle = {
"myApp" => "project/app/Assets/**/*.{storyboard,xib,strings,xcassets}"
}
解决方案 2
myApp.resource_bundle = {
"myApp" => "project/app/Assets/**/*.{storyboard,xib,strings,xcassets,png,pdf}"
}
哪个是正确的?
【问题讨论】: