Эх сурвалжийг харах

Include 'source' attribute in the podspec

The new version of Cocoapods requires it even when using the podspec locally.
Jorge Canizales 9 жил өмнө
parent
commit
f492dd8aa4

+ 3 - 0
Protobuf.podspec

@@ -11,6 +11,9 @@ Pod::Spec.new do |s|
   s.license  = 'New BSD'
   s.license  = 'New BSD'
   s.authors  = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
   s.authors  = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
 
 
+  s.source = { :git => 'https://github.com/google/protobuf.git',
+               :tag => "v#{s.version}" }
+
   s.source_files = 'objectivec/*.{h,m}',
   s.source_files = 'objectivec/*.{h,m}',
                    'objectivec/google/protobuf/Any.pbobjc.{h,m}',
                    'objectivec/google/protobuf/Any.pbobjc.{h,m}',
                    'objectivec/google/protobuf/Api.pbobjc.{h,m}',
                    'objectivec/google/protobuf/Api.pbobjc.{h,m}',