Skip to content

Commit 8cbb4cf

Browse files
committed
Merge pull request #1 from jcanizales/podspec_fix
A few corrections to the proposed podspec
2 parents bba6d76 + 9d6b946 commit 8cbb4cf

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

Protobuf.podspec

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,25 @@ Pod::Spec.new do |s|
66
s.license = 'New BSD'
77
s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
88

9-
s.source_files = 'objectivec/*.{h,m}', 'objectivec/google/protobuf/*.pbobjc.h', 'objectivec/google/protobuf/Any.pbobjc.m', 'objectivec/google/protobuf/Api.pbobjc.m', 'objectivec/google/protobuf/Descriptor.pbobjc.m', 'objectivec/google/protobuf/Empty.pbobjc.m', 'objectivec/google/protobuf/FieldMask.pbobjc.m', 'objectivec/google/protobuf/SourceContext.pbobjc.m', 'objectivec/google/protobuf/Struct.pbobjc.m' 'objectivec/google/protobuf/Type.pbobjc.m', 'objectivec/google/protobuf/Wrappers.pbobjc.m'
10-
# The following would cause duplicate symbol definitions
11-
s.exclude_files = 'objectivec/GPBProtocolBuffers.m', 'objectivec/google/protobuf/Api.pobjc.m', 'objectivec/google/protobuf/Type.pobjc.m'
12-
# The .m's of the proto Well-Known-Types under google/protobuf are #imported
13-
# by GPBWellKnownTypes.m. So we can't compile them (duplicate symbols), but we
14-
# need them available for the importing:
15-
s.preserve_paths = 'objectivec/google/protobuf/*.pbobjc.m'
9+
s.source_files = 'objectivec/*.{h,m}',
10+
'objectivec/google/protobuf/Any.pbobjc.{h,m}',
11+
'objectivec/google/protobuf/Descriptor.pbobjc.{h,m}',
12+
'objectivec/google/protobuf/Duration.pbobjc.h',
13+
'objectivec/google/protobuf/Empty.pbobjc.{h,m}',
14+
'objectivec/google/protobuf/FieldMask.pbobjc.{h,m}',
15+
'objectivec/google/protobuf/SourceContext.pbobjc.{h,m}',
16+
'objectivec/google/protobuf/Timestamp.pbobjc.h',
17+
'objectivec/google/protobuf/Wrappers.pbobjc.{h,m}'
18+
# Timestamp.pbobjc.m and Duration.pbobjc.m are #imported by GPBWellKnownTypes.m. So we can't
19+
# compile them (duplicate symbols), but we need them available for the importing:
20+
s.preserve_paths = 'objectivec/google/protobuf/Duration.pbobjc.m',
21+
'objectivec/google/protobuf/Timestamp.pbobjc.m'
22+
# The following would cause duplicate symbol definitions. GPBProtocolBuffers is expected to be
23+
# left out, as it's an umbrella implementation file. For Api, Struct and Type, see issue #449.
24+
s.exclude_files = 'objectivec/GPBProtocolBuffers.m',
25+
'objectivec/google/protobuf/Api.pbobjc.{h,m}',
26+
'objectivec/google/protobuf/Struct.pbobjc.{h,m}',
27+
'objectivec/google/protobuf/Type.pbobjc.{h,m}'
1628
s.header_mappings_dir = 'objectivec'
1729

1830
s.ios.deployment_target = '6.0'

0 commit comments

Comments
 (0)