Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cocoapods #1

Closed
dvkch opened this issue Jun 23, 2016 · 3 comments
Closed

Cocoapods #1

dvkch opened this issue Jun 23, 2016 · 3 comments

Comments

@dvkch
Copy link

dvkch commented Jun 23, 2016

Hi,

I think adding this to Cocoapods would be nice. Here is a podspec file you could user :

Pod::Spec.new do |s|
  s.name     = 'PSTModernizer'
  s.version  = '1.0'
  s.license  = 'MIT'
  s.summary  = 'Makes it easier to support older versions of iOS by fixing things and adding missing methods'
  s.homepage = 'https://github.com/PSPDFKit-labs/PSTModernizer'
  s.author   = { 'PSPDFKit Labs' => 'https://pspdfkit.com/' }
  s.source   = { :git => 'https://github.com/PSPDFKit-labs/PSTModernizer.git', :tag => s.version.to_s }
  s.source_files = 'PSTModernizer/*.{h,m,mm}'
  s.requires_arc = true

  s.xcconfig = { 'CLANG_MODULES_AUTOLINK' => 'YES' }
  s.ios.deployment_target = '6.0'
  s.tvos.deployment_target = '9.0'

end

The minimum iOS version could be adjusted, haven't been able to guess which one would be used. To support cocoapod versioning I usually tag each new version, and change the version number in the podspec.

To push to Cocoapods :

# checks if the podfile is correct and the code compiles 
pod lib lint
# push to the public cocoapods repo
pod trunk push PSTModernizer.podspec
@zats
Copy link

zats commented Jun 23, 2016

I also thought about making each patch into a separate sub-spec. While it has certain maintenance overhead, it should allow to pick and choose which patches to ship with your app.
Also I haven't researched the topic, but I'm guessing it should be possible to get a default opt-in to every sub-spec behavior?
What do you think?

@lfarah
Copy link

lfarah commented Jun 24, 2016

This is fixed in #3

@elfenlaid
Copy link

Something odd has happened to spec, basically it has became unsearchable:

pod try PSTModernizer
Updating spec repositories
[!] Unable to find a specification for `PSTModernizer`
https://cocoapods.org/?q=PSTModernizer 
SORRY. NO PODS FOUND.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants