Skip to content

Commit bfb73ce

Browse files
committed
Update to Podfile
1 parent 538f5d4 commit bfb73ce

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

samples/react-native/ios/Podfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ if linkage != nil
2424
end
2525
end
2626
end
27+
2728
end
2829

2930
target 'sentryreactnativesample' do
@@ -45,6 +46,14 @@ target 'sentryreactnativesample' do
4546
end
4647

4748
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
4857
# https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
4958
react_native_post_install(
5059
installer,

0 commit comments

Comments
 (0)