Skip to content

Commit d924241

Browse files
Add modular headers support to Objective-C Firebase pods for static framework compatibility (#15506)
Co-authored-by: Nick Cooke <[email protected]>
1 parent f6c34ab commit d924241

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

FirebaseCore.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ Firebase Core includes FIRApp and FIROptions which provide central configuration
5656
s.dependency 'FirebaseCoreInternal', '~> 12.7.0'
5757

5858
s.pod_target_xcconfig = {
59+
'DEFINES_MODULE' => 'YES',
5960
'GCC_PREPROCESSOR_DEFINITIONS' => 'Firebase_VERSION=' + s.version.to_s,
6061
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"',
6162
'OTHER_CFLAGS' => '-fno-autolink'

FirebaseCoreExtension.podspec

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,9 @@ Pod::Spec.new do |s|
3434
"#{s.module_name}_Privacy" => 'FirebaseCore/Extension/Resources/PrivacyInfo.xcprivacy'
3535
}
3636

37+
s.pod_target_xcconfig = {
38+
'DEFINES_MODULE' => 'YES'
39+
}
40+
3741
s.dependency 'FirebaseCore', '~> 12.7.0'
3842
end

FirebaseInstallations.podspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ Pod::Spec.new do |s|
5252

5353
preprocessor_definitions = ''
5454
s.pod_target_xcconfig = {
55+
'DEFINES_MODULE' => 'YES',
5556
'GCC_PREPROCESSOR_DEFINITIONS' => preprocessor_definitions,
5657
'HEADER_SEARCH_PATHS' => '"${PODS_TARGET_SRCROOT}"'
5758
}

0 commit comments

Comments
 (0)