我正在构建一个私有框架以便在私有pod规范存储库中使用。让我们调用框架“IOSExampleFramework”。在我的cocoapod中包含plist文件
我在尝试将plist与源文件捆绑在一起时出现问题。我荚规范的一个例子是:
Pod::Spec.new do |s|
s.name = "IOSExampleFramework"
s.version = "0.0.2"
s.summary = "IOSExampleFramework Framwork"
s.description = <<-DESC
This framework is an example framework for stack overflow question purposes.
DESC
s.homepage = "http://example.com"
s.license = { :type => "Custom", :text => <<-LICENSE
Copyright Stephen Biggerstaff
LICENSE
}
s.author = { "Stephen Biggerstaff" => "[email protected]" }
s.ios.deployment_target = "8.0"
s.source = { :git => "https://exampleRepo.git", :tag => "0.0.2" }
s.source_files = "Classes", "IOSExampleFramework/IOSExampleFramework/*.{h,m}"
#s.resource = "DeviceIdentifiers.plist"
s.ios.vendored_frameworks = "IOSExampleFramework/CrashReporter.framework"
#s.xcconfig = { "HEADER_SEARCH_PATHS" => "$(SDKROOT)/usr/include/libxml2", 'OTHER_LDFLAGS' => "-ObjC" }
end
我的消息来源做工精细,但是plist中是在同一目录中,这些源和不拉下来的时候,我试图做一个豆荚更新应用程序中的我需要它。
我也试过在资源中指定一个通配符“* .plist”,但是我不想拉下info.plist,尽管它无法工作。
任何帮助,将不胜感激
也许我的占位符名称是误导性的。我不会将此Pod作为框架打包,所以这不起作用。至少我猜这是问题所在。我已经解决了,并添加了我自己的解决方案。谢谢! – Biggs