diff --git a/ios_pod/Podfile b/ios_pod/Podfile index 165f78b9ad..36b955737e 100644 --- a/ios_pod/Podfile +++ b/ios_pod/Podfile @@ -22,3 +22,9 @@ target 'GetPods' do pod 'Firebase/Storage', '10.17.0' end + +post_install do |installer| + # Patch FirebaseAppCheck 10.16.0 header to replace @import with #import. + # TODO (b/304327855): Remove when iOS SDK 10.17.0 is released. + system("sed '-i~' 's%^@import FirebaseAppCheckInterop;%#import \"FirebaseAppCheck/Interop/FIRAppCheckInterop.h\"\\n#import \"FirebaseAppCheck/Interop/FIRAppCheckProtocol.h\"\\n#import \"FirebaseAppCheck/Interop/FIRAppCheckTokenResultInterop.h\"%' Pods/FirebaseAppCheck/FirebaseAppCheck/Sources/Public/FirebaseAppCheck/FIRAppCheck.h") +end