我想隐藏我通过Cocoapods分发的框架的实现,我的.podspec
目前看起来像这样:
Pod::Spec.new do |s|
s.name = "SomeName"
s.version = "0.0.1"
s.summary = "Some Summary"
s.description = <<-DESC
some description
DESC
s.homepage = "https://www.some.homepage"
s.license = "Some Licence"
s.author = { "My Name" => "my@email.address" }
s.platform = :ios, "9.0"
s.source = { :http => "https://www.some.link.to/my/MyFramework.framework.zip" }
s.vendored_frameworks = "**/MyFramework.framework"
s.frameworks = "MyFramework"
s.xcconfig = { 'FRAMEWORK_SEARCH_PATHS' => '"$(PODS_ROOT)/MyFramework"' }
s.preserve_paths = 'MyFramework.framework'
s.so
现在我有两个问题:
s.source
和MyFramework.framework
之间有什么区别?采取哪一个?.framework
文件中?用户看到框架的链接,可以下载它并在那里看到json文件......有没有办法隐藏它?