From afd376c5752c917335389b6a2c0cf79c20085233 Mon Sep 17 00:00:00 2001 From: "Ng Wing Tat, David" Date: Thu, 5 Sep 2024 18:43:31 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Fix=20build=20error=20caused=20b?= =?UTF-8?q?y=20Flipper?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ios/Podfile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/ios/Podfile b/ios/Podfile index 02ea062ad..9e464d5be 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|