diff --git a/ios/Podfile b/ios/Podfile index 02ea062a..9e464d5b 100644 --- a/ios/Podfile +++ b/ios/Podfile @@ -29,6 +29,20 @@ target 'LikeCoinApp' do end post_install do |installer| + # Ref: https://github.com/facebook/react-native/issues/43335 + installer.pods_project.targets.each do |target| + if target.name == 'Flipper' + file_path = 'Pods/Flipper/xplat/Flipper/FlipperTransportTypes.h' + contents = File.read(file_path) + unless contents.include?('#include ') + File.open(file_path, 'w') do |file| + file.puts('#include ') + file.puts(contents) + end + end + end + end + react_native_post_install(installer) __apply_Xcode_12_5_M1_post_install_workaround(installer) installer.pods_project.targets.each do |target|