File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ if linkage != nil
24
24
end
25
25
end
26
26
end
27
+
27
28
end
28
29
29
30
target 'sentryreactnativesample' do
@@ -45,6 +46,14 @@ target 'sentryreactnativesample' do
45
46
end
46
47
47
48
post_install do |installer |
49
+ # Fix for Coroutine.h being not found: https://github.com/wix/react-native-navigation/issues/7928#issuecomment-2447543509
50
+ # Remove it once the proper fix is done by react-native-navigation
51
+ system ( "chmod -R u+w Pods/RCT-Folly" )
52
+ Dir . glob ( "Pods/RCT-Folly/folly/Portability.h" ) . each do |file |
53
+ text = File . read ( file )
54
+ new_contents = text . gsub ( '#define FOLLY_HAS_COROUTINES 1' , '#define FOLLY_HAS_COROUTINES 0' )
55
+ File . open ( file , "w" ) { |file | file . puts new_contents }
56
+ end
48
57
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
49
58
react_native_post_install (
50
59
installer ,
You can’t perform that action at this time.
0 commit comments