Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created November 29, 2012 14:32
Show Gist options
  • Save fgarcia/4169456 to your computer and use it in GitHub Desktop.
Save fgarcia/4169456 to your computer and use it in GitHub Desktop.
podspec for an internal static library
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
@fgarcia
Copy link
Author

fgarcia commented Nov 29, 2012

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment