1
1
require_relative '../node_modules/react-native/scripts/react_native_pods'
2
2
require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules'
3
3
4
- platform :ios , '11.0 '
4
+ platform :ios , '12.4 '
5
5
install! 'cocoapods' , :deterministic_uuids => false
6
6
7
- ENV [ 'RCT_NEW_ARCH_ENABLED' ] = '1'
8
-
9
7
target 'UnicornExample' do
10
8
config = use_native_modules!
11
9
@@ -18,17 +16,21 @@ target 'UnicornExample' do
18
16
:hermes_enabled => true ,
19
17
:fabric_enabled => flags [ :fabric_enabled ] ,
20
18
# An absolute path to your application root.
21
- :app_path => "#{ Pod ::Config . instance . installation_root } /.."
19
+ :app_path => "#{ Pod ::Config . instance . installation_root } /.." ,
20
+ # Enables Flipper.
21
+ #
22
+ # Note that if you have use_frameworks! enabled, Flipper will not work and
23
+ # you should disable the next line.
24
+ :flipper_configuration => FlipperConfiguration . enabled ,
22
25
)
23
26
24
- # Enables Flipper.
25
- #
26
- # Note that if you have use_frameworks! enabled, Flipper will not work and
27
- # you should disable the next line.
28
- use_flipper! ( )
29
-
30
27
post_install do |installer |
31
- react_native_post_install ( installer )
28
+ react_native_post_install (
29
+ installer ,
30
+ # Set `mac_catalyst_enabled` to `true` in order to apply patches
31
+ # necessary for Mac Catalyst builds
32
+ :mac_catalyst_enabled => false
33
+ )
32
34
__apply_Xcode_12_5_M1_post_install_workaround ( installer )
33
35
end
34
36
end
0 commit comments