diff --git a/README.md b/README.md index c85fba7ab..1b56cacc6 100644 --- a/README.md +++ b/README.md @@ -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: diff --git a/SwiftProtobuf.podspec b/SwiftProtobuf.podspec new file mode 100644 index 000000000..99b8569a3 --- /dev/null +++ b/SwiftProtobuf.podspec @@ -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 \ No newline at end of file