Skip to content

Commit e15432c

Browse files
authored
fix(ios): fix pod install on RN 0.70.x + New Arch (#1004)
Resolves #997
1 parent 03fde4b commit e15432c

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

packages/default-storage-backend/RNCAsyncStorage.podspec

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,18 @@ Pod::Spec.new do |s|
2424
'CLANG_CXX_LANGUAGE_STANDARD' => 'c++17',
2525
}
2626
s.platforms = { ios: '13.4', tvos: '11.0', :osx => "10.15" }
27-
s.compiler_flags = folly_compiler_flags + ' -DRCT_NEW_ARCH_ENABLED'
28-
29-
install_modules_dependencies(s)
27+
s.compiler_flags = folly_compiler_flags + ' -DRCT_NEW_ARCH_ENABLED=1'
28+
29+
if respond_to?(:install_modules_dependencies, true)
30+
install_modules_dependencies(s)
31+
else
32+
s.dependency "React-Core"
33+
s.dependency "React-Codegen"
34+
s.dependency "RCT-Folly"
35+
s.dependency "RCTRequired"
36+
s.dependency "RCTTypeSafety"
37+
s.dependency "ReactCommon/turbomodule/core"
38+
end
3039
else
3140
s.platforms = { :ios => "9.0", :tvos => "9.2", :osx => "10.14" }
3241

0 commit comments

Comments
 (0)