@@ -6,6 +6,12 @@ require Pod::Executable.execute_command('node', ['-p',
66 )' , __dir__ ] ) . strip
77
88platform :ios , min_ios_version_supported
9+
10+ # Enable New Architecture
11+ ENV [ 'RCT_NEW_ARCH_ENABLED' ] = '1'
12+ # Enable bridgeless mode
13+ ENV [ 'RCT_BRIDGELESS_ENABLED' ] = '1'
14+
915prepare_react_native_project!
1016
1117linkage = ENV [ 'USE_FRAMEWORKS' ]
@@ -20,21 +26,24 @@ target 'SampleApp' do
2026 use_react_native! (
2127 :path => config [ :reactNativePath ] ,
2228 # An absolute path to your application root.
23- :app_path => "#{ Pod ::Config . instance . installation_root } /.."
29+ :app_path => "#{ Pod ::Config . instance . installation_root } /.." ,
30+ :hermes_enabled => true , # Hermes is recommended
31+ :fabric_enabled => true , # Enable Fabric renderer
32+ :new_arch_enabled => true # Enable TurboModules + Fabric
2433 )
2534
26- target 'SampleAppTests' do
27- inherit! :complete
28- # Pods for testing
29- end
30-
3135 post_install do |installer |
32- # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
3336 react_native_post_install (
3437 installer ,
3538 config [ :reactNativePath ] ,
3639 :mac_catalyst_enabled => false ,
3740 # :ccache_enabled => true
3841 )
42+
43+ installer . pods_project . targets . each do |target |
44+ target . build_configurations . each do |config |
45+ config . build_settings [ 'CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER' ] = 'NO'
46+ end
47+ end
3948 end
40- end
49+ end
0 commit comments