Skip to content

Instantly share code, notes, and snippets.

@fgarcia
Created November 29, 2012 14:32
Show Gist options
  • Select an option

  • Save fgarcia/4169456 to your computer and use it in GitHub Desktop.

Select an option

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" => "public@francisco-garcia.net" }
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

fgarcia commented Nov 29, 2012

Copy link
Copy Markdown
Author

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