Skip to content

Commit cec08dc

Browse files
thomasvlzhangskz
authored andcommitted
[ObjC] Add the privacy manifest to the ObjC CocoaPod.
There are no restrict calls, so the manifest asserts that. The CocoaPods support now ensure you are using CocoaPods >= 1.12 as that avoids all the know bugs in CocoaPods support needed to capture the Privacy Manifest in a resource bundle. PiperOrigin-RevId: 602433417
1 parent cf87faa commit cec08dc

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Protobuf.podspec

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,10 @@ Pod::Spec.new do |s|
1010
s.homepage = 'https://github.com/protocolbuffers/protobuf'
1111
s.license = 'BSD-3-Clause'
1212
s.authors = { 'The Protocol Buffers contributors' => 'protobuf@googlegroups.com' }
13-
s.cocoapods_version = '>= 1.0'
13+
14+
# Ensure developers won't hit CocoaPods/CocoaPods#11402 with the resource
15+
# bundle for the privacy manifest.
16+
s.cocoapods_version = '>= 1.12.0'
1417

1518
s.source = { :git => 'https://github.com/protocolbuffers/protobuf.git',
1619
:tag => "v#{s.version}" }
@@ -30,6 +33,10 @@ Pod::Spec.new do |s|
3033
# left out, as it's an umbrella implementation file.
3134
s.exclude_files = 'objectivec/GPBProtocolBuffers.m'
3235

36+
s.resource_bundle = {
37+
"Protobuf_Privacy" => "PrivacyInfo.xcprivacy"
38+
}
39+
3340
# Set a CPP symbol so the code knows to use framework imports.
3441
s.user_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }
3542
s.pod_target_xcconfig = { 'GCC_PREPROCESSOR_DEFINITIONS' => '$(inherited) GPB_USE_PROTOBUF_FRAMEWORK_IMPORTS=1' }

0 commit comments

Comments
 (0)