Created
February 2, 2016 08:53
-
-
Save tang3w/5058474b7e307f15652e to your computer and use it in GitHub Desktop.
AVOSCloud-tvOS-v3.2.2.podspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Pod::Spec.new do |s| | |
platform = 'AVOSCloud' | |
s.name = "AVOSCloud-tvOS" | |
s.version = "3.2.2" | |
s.platform = :tvos, "9.0" | |
s.tvos.deployment_target = "9.0" | |
s.summary = "LeanCloud tvOS SDK for mobile backend." | |
s.homepage = "https://leancloud.cn" | |
s.documentation_url = "https://leancloud.cn/api-docs/iOS/index.html" | |
s.license = { | |
:type => "Commercial", | |
:text => "Copyright 2015 LeanCloud, Inc. See https://leancloud.cn/terms.html" | |
} | |
s.author = { "LeanCloud" => "[email protected]" } | |
s.source = { :http => "https://download.leancloud.cn/sdk/tvOS/release-v#{s.version}/Static/#{platform}.framework.zip" } | |
framework_path = "tvOS/release-v#{s.version}/Static/#{platform}.framework" | |
s.source_files = "*.h" | |
s.public_header_files = "*.h" | |
s.preserve_paths = "#{framework_path}/#{platform}" | |
s.vendored_libraries = "lib#{platform}.a" | |
s.frameworks = "CFNetwork", "MobileCoreServices", "CoreLocation", "CoreGraphics", "Security", "QuartzCore" | |
s.libraries = "icucore", "sqlite3" | |
s.xcconfig = { 'OTHER_LDFLAGS' => '$(inherited) -ObjC -lz' } | |
s.prepare_command = <<-CMD.gsub(/^[ \t]+/, '') | |
cp #{framework_path}/#{platform} lib#{platform}.a | |
cp #{framework_path}/Headers/* . | |
CMD | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment