Skip to content

Commit 6448fc7

Browse files
committed
do not upgrade RN since it cause unidentified problems, patch things to make it work instead
1 parent 07a39dc commit 6448fc7

File tree

2 files changed

+238
-230
lines changed

2 files changed

+238
-230
lines changed

App/ios/Podfile

+9-1
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,22 @@ target 'Inventory' do
4141
:app_path => "#{Pod::Config.instance.installation_root}/.."
4242
)
4343

44-
pod 'OpenSSL-Universal', :modular_headers => true, :configurations => ['Nightly', 'Release']
44+
# Forcing OpenSSL-Universal version due to https://github.com/margelo/react-native-quick-crypto/issues/189#issuecomment-1711561970
45+
pod 'OpenSSL-Universal', '1.1.1100', :modular_headers => true, :configurations => ['Nightly', 'Release']
4546

4647
target 'InventoryTests' do
4748
inherit! :complete
4849
# Pods for testing
4950
end
5051

5152
post_install do |installer|
53+
# https://github.com/facebook/react-native/issues/37748#issuecomment-1580589448
54+
installer.pods_project.targets.each do |target|
55+
target.build_configurations.each do |config|
56+
config.build_settings['GCC_PREPROCESSOR_DEFINITIONS'] ||= ['$(inherited)', '_LIBCPP_ENABLE_CXX17_REMOVED_UNARY_BINARY_FUNCTION']
57+
end
58+
end
59+
5260
react_native_post_install(
5361
installer,
5462
# Set `mac_catalyst_enabled` to `true` in order to apply patches

0 commit comments

Comments
 (0)