Skip to content

Commit 2340868

Browse files
committed
Merge pull request #759 from TeBoring/beta-1-2
Fix Protobuf.podspec
2 parents 08575d9 + fe98264 commit 2340868

File tree

1 file changed

+19
-5
lines changed

1 file changed

+19
-5
lines changed

Protobuf.podspec

+19-5
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,25 @@ Pod::Spec.new do |s|
1111
s.license = 'New BSD'
1212
s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
1313

14-
s.source_files = 'objectivec/GPBProtocolBuffers.{h,m}'
15-
# GPBProtocolBuffers.{h,m} are umbrella files. We need Cocoapods to preserve the files imported by
16-
# them.
17-
s.preserve_paths = 'objectivec/*.{h,m}',
18-
'objectivec/google/protobuf/*.pbobjc.{h,m}'
14+
s.source_files = 'objectivec/*.{h,m}',
15+
'objectivec/google/protobuf/Any.pbobjc.{h,m}',
16+
'objectivec/google/protobuf/Api.pbobjc.{h,m}',
17+
'objectivec/google/protobuf/Descriptor.pbobjc.{h,m}',
18+
'objectivec/google/protobuf/Duration.pbobjc.h',
19+
'objectivec/google/protobuf/Empty.pbobjc.{h,m}',
20+
'objectivec/google/protobuf/FieldMask.pbobjc.{h,m}',
21+
'objectivec/google/protobuf/SourceContext.pbobjc.{h,m}',
22+
'objectivec/google/protobuf/Struct.pbobjc.{h,m}',
23+
'objectivec/google/protobuf/Timestamp.pbobjc.h',
24+
'objectivec/google/protobuf/Type.pbobjc.{h,m}'
25+
'objectivec/google/protobuf/Wrappers.pbobjc.{h,m}'
26+
# Timestamp.pbobjc.m and Duration.pbobjc.m are #imported by GPBWellKnownTypes.m. So we can't
27+
# compile them (duplicate symbols), but we need them available for the importing:
28+
s.preserve_paths = 'objectivec/google/protobuf/Duration.pbobjc.m',
29+
'objectivec/google/protobuf/Timestamp.pbobjc.m'
30+
# The following would cause duplicate symbol definitions. GPBProtocolBuffers is expected to be
31+
# left out, as it's an umbrella implementation file.
32+
s.exclude_files = 'objectivec/GPBProtocolBuffers.m'
1933
s.header_mappings_dir = 'objectivec'
2034

2135
s.ios.deployment_target = '7.1'

0 commit comments

Comments
 (0)