Cocapods没有生成资源包

时间:2017-06-21 11:18:52

标签: git cocoapods bundle

我在Swift中开发了一个私有框架,我将通过Cocoapods在git repo中发布它。

当我在Swift项目中安装pod时,它工作正常,并生成资源包。但是如果我尝试从ObjC项目导入它,则不会创建资源包。我不知道这是我的podspec中的问题还是Cocoapods的问题。

Podspec:

Pod::Spec.new do |s|

s.platform = :ios
s.ios.deployment_target = '9.0'
s.name = "SMC_iOS"
s.summary = "SMC."
s.requires_arc = true

s.version = "0.0.1"
s.license = { :type => "Copyright", :file => "./SMC/LICENSE" }
s.author = { "..." => "..." }
s.homepage = "..."

s.ios.vendored_frameworks = 'SMC/SMC_iOS.framework'
s.source = { :path => './SMC/SMC_iOS.framework' }
s.source_files = "SMC_iOS/**/*.{swift,h,m}"
s.resource_bundles = {'SMC_iOS' => ['SMC_iOS/**/*.{png,jpeg,jpg,storyboard,xib,xcassets,strings}']}

end

派生数据:

Swift build:

SWIFT-BUILD

目标C版:( 缺少捆绑

OBJC-BUILD

0 个答案:

没有答案