Skip to content

Commit

Permalink
Merge pull request #5 from radex/podspec
Browse files Browse the repository at this point in the history
Add CocoaPods support
  • Loading branch information
tbkka authored Sep 28, 2016
2 parents 6b1a0b0 + 44d84c4 commit ccd6522
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,18 @@ If you are using Xcode, then you should:
* Add the Swift source files generated from your protos directly to your project
* Add the Protobuf target from the Xcode project in this package to your project.

## Using the library with CocoaPods

If you're using CocoaPods, add this to your `Podfile`:

~~~ruby
pod 'SwiftProtobuf', git: 'https://github.com/apple/swift-protobuf-runtime.git'
~~~

And run `pod install`.

(Swift 3 frameworks require CocoaPods 1.1 or newer)

## Report any issues

If you run into problems, please send us a detailed report. At a minimum, please include:
Expand Down
17 changes: 17 additions & 0 deletions SwiftProtobuf.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
Pod::Spec.new do |s|
s.name = 'SwiftProtobuf'
s.version = '0.9.21'
s.license = { :type => 'Apache 2.0', :file => 'LICENSE.txt' }
s.summary = 'Runtime library needed to use code generated by swift-protobuf-plugin'
s.homepage = 'https://github.com/apple/swift-protobuf-runtime'
s.author = 'Apple Inc.'
s.source = { :git => 'https://github.com/apple/swift-protobuf-runtime.git', :tag => s.version }

s.requires_arc = true
s.ios.deployment_target = '8.0'
s.osx.deployment_target = '10.9'
s.tvos.deployment_target = '9.0'
s.watchos.deployment_target = '2.0'

s.source_files = 'Sources/**/*.swift'
end

0 comments on commit ccd6522

Please sign in to comment.