Podspec
Effortlessly create a CocoaPods Podspec.
Installation
$ gem install podspec
Usage
$ podspec postmates/PMJSON
Generating Podspec for postmates/PMJSON...
Wrote PMJSON.podspec in 3s ✨
Sample Output
PMJSON.podspec
Pod::Spec.new do |s|
s.name = "PMJSON"
s.version = "0.9"
s.summary = "Pure Swift JSON encoding/decoding library"
s.description = "PMJSON provides a pure-Swift strongly-typed JSON encoder/decoder as well as a set of convenience methods for converting to/from Foundation objects and for decoding JSON structures."
s.homepage = "https://github.com/postmates/PMJSON"
s.license = "Apache License 2.0"
s.author = "Postmates Inc."
s.source = { :git => "https://github.com/postmates/PMJSON.git", :tag => "v0.9" }
s.source_files = "Sources/*.{h,m,swift}"
s.ios.deployment_target = "8.0"
# s.osx.deployment_target = "10.9"
# s.watchos.deployment_target = "2.0"
# s.tvos.deployment_target = "9.0"
end
The Podspec created should get you started, make sure to consult the Podspec syntax reference.
Validate the Podspec
$ pod spec lint PMJSON.podspec
-> PMJSON (0.9)
Analyzed 1 podspec.
PMJSON.podspec passed validation.
☕
Examples
- timdonnelly/Advance#3
- postmates/PMJSON#3
- carantes/CircularProgressControl#7
- https://github.com/dkhamsing/TwitterSafariViewControllerAuth
Contact
License
This project is available under the MIT license. See the LICENSE file for more info.