当使用1.0.0而不是0.39.0的pod安装时,故事板不会复制到pod包

时间:2016-05-11 07:20:26

标签: ios cocoapods podspec

我正在尝试使用以下代码在我的pod中使用storyboard文件:

NSBundle *bundle = [NSBundle bundleForClass:[self class]];
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MyStoryboard" bundle:bundle];

这适用于使用pod _0.39.0_ install,但不再使用版本1.0.0。

podspec文件:

Pod::Spec.new do |s|
s.name             = "MyPod"
s.version = '1.0.0'
s.summary          = "Summary"
s.description      = <<-DESC
                  ...
                   DESC

s.homepage         = "http://www.myhomepage.com"
s.license          = 'MIT'
s.author           = { "..." => "" }
s.source           = { :git => "https://.../mypod", :tag => s.version.to_s}
s.platform     = :ios, '8.0'
s.requires_arc = true
s.source_files = 'MYPod/**/*.{h,m}' 
s.resources = ["MYPod/**/*.xcassets", "MYPod/**/*.storyboard", "MYPod/**/*.xib"]
s.dependency 'MyDependency', '~> 1.0'
end

我还需要更改哪些内容才能使用1.0.0?

0 个答案:

没有答案