Restrict podspec template to iOS/macOS

This commit is contained in:
Davide De Rosa 2019-11-01 20:39:20 +01:00
parent 5266e1f398
commit 8f9c6d9520
1 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,7 @@
Pod::Spec.new do |s|
openssl_version = "%OPENSSL-VERSION%"
script_version = "4"
openssl_targets = "ios-sim-cross-x86_64 ios64-cross-arm64 macos64-x86_64"
script_version = "5a"
s.name = "OpenSSL-Apple"
s.version = "#{openssl_version}.#{script_version}"
@ -12,17 +13,13 @@ Pod::Spec.new do |s|
s.license = { :type => 'Apache', :file => 'LICENSE' }
s.prepare_command = <<-CMD
./build-libssl.sh --version=#{openssl_version}
./build-libssl.sh --version="#{openssl_version}" --targets="#{openssl_targets}"
./create-openssl-framework.sh dynamic
CMD
s.ios.deployment_target = "11.0"
s.ios.vendored_frameworks = "frameworks/iPhone/openssl.framework"
s.tvos.deployment_target = "11.0"
s.tvos.vendored_frameworks = "frameworks/AppleTV/openssl.framework"
s.osx.deployment_target = "10.11"
s.osx.vendored_frameworks = "frameworks/MacOSX/openssl.framework"
s.watchos.deployment_target = "4.0"
s.watchos.vendored_frameworks = "frameworks/WatchOS/openssl.framework"
s.requires_arc = false
end