Skip to content

Instantly share code, notes, and snippets.

@jakehawken
Last active February 12, 2020 21:06
Show Gist options
  • Select an option

  • Save jakehawken/2cc12354b2416d282a02c5849e29906e to your computer and use it in GitHub Desktop.

Select an option

Save jakehawken/2cc12354b2416d282a02c5849e29906e to your computer and use it in GitHub Desktop.
Pod::Spec.new do |s|
s.name = '{YOUR POD NAME}'
s.version = '0.0.1'
s.summary = '{HIGH LEVEL, ONE-SENTENCE SUMMARY}'
s.description = <<-DESC
{LONG-FORM DESCRIPTION OF YOUR COCOAPOD}
Tags: {A COMMA-SEPARATED LIST OF SEARCHABLE TAGS}
DESC
# I recommend writing a git hook that scrapes this from your README.md file.
s.homepage = '{URL FOR YOUR REPO}'
s.license = { :type => 'MIT', :file => 'LICENSE' } #modify as desired
s.author = { '{NAME OR USERNAME}' => '{URL FOR SOME KIND OF ONLINE PROFILE FOR THE CREATOR}' }
s.source = { :git => '{GIT CLONING ADDRESS (ends in .git)}', :tag => s.version.to_s }
s.social_media_url = '{TOTALLY OPTIONAL SOCIAL MEDIA URL}'
s.platform = :ios, "12.4.1"
s.ios.deployment_target = '12.4.1'
s.source_files = 'Source/**/*' # The relative path within repo for files to actually include in the pod. I highly recommend that this is not the root of the repo.
s.dependency '{SOME OTHER POD}' # Create an additional line like this one for every dependency your pod has.
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment