Created
November 29, 2012 14:32
-
-
Save fgarcia/4169456 to your computer and use it in GitHub Desktop.
podspec for an internal static library
This file contains hidden or 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| | |
s.name = "CocoYAML" | |
s.version = "0.0.1" | |
s.author = { "Francisco Garcia" => "[email protected]" } | |
s.summary = "libyaml wrapper" | |
s.homepage = "http://www.francisco-garcia.net" | |
s.license = { :type => 'MIT' } | |
s.platform = :osx | |
s.source = { :git => 'git@home:cocoyaml', :branch => 'master' } | |
s.source_files = 'CocoYAML/CocoYAML/**/*.h' | |
s.preserve_paths = 'libCocoYAML.a' | |
s.library = 'CocoYAML' | |
s.xcconfig = { 'LIBRARY_SEARCH_PATHS' => '"$(PODS_ROOT)/CocoYAML"' } | |
s.requires_arc = true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
podspec to go along a library distributed as a Pod.
When the library changes frequently, the podspec too, and it is used in many projects, I distribute it with a pre-compiled binary to avoid recompiling so many times
Projects using this just must use:
pod 'CocoYAML', :git => 'git@home:cocoyaml', :branch => 'master'
and that will pull the latest podspec from the git repo of the library.