diff --git a/Gutenberg/cocoapods_helpers.rb b/Gutenberg/cocoapods_helpers.rb index 3a038b2e7030..af2272be1fed 100644 --- a/Gutenberg/cocoapods_helpers.rb +++ b/Gutenberg/cocoapods_helpers.rb @@ -124,6 +124,12 @@ def gutenberg_post_install(installer:) react_native_path = Pathname.new(react_native_path).relative_path_from(Dir.pwd) react_native_post_install(installer, react_native_path) + + # The following workaround is needed to avoid the error `typedef redefinition with different types ('uint8_t' (aka 'unsigned char') vs 'enum clockid_t')`. + # This solution is referenced in https://github.com/facebook/react-native/issues/39568#issuecomment-1762890606. + # It will be needed until RCT-Folly version is bumped in React Native to version v2022.08.29.00 or above. + # Referece: https://github.com/facebook/folly/commit/4a2410fae65afb85e1fec6d922005054b05de59f + __apply_Xcode_12_5_M1_post_install_workaround(installer) end def gutenberg_post_integrate