File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
packages/react-native/local-cli/generator-macos/templates/macos Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1- autolinking_script = File . expand_path ( '../node_modules/react-native-macos/scripts/cocoapods/autolinking.rb' , __dir__ )
2- if File . exist? ( autolinking_script )
3- require_relative '../node_modules/react-native-macos/scripts/cocoapods/autolinking'
4- else
5- require_relative '.. /node_modules/react-native-macos/scripts/react_native_pods'
6- require_relative '../node_modules/@react-native-community/cli-platform-ios/native_modules '
7- end
1+ require 'pathname'
2+
3+ ws_dir = Pathname . new ( __dir__ )
4+ ws_dir = ws_dir . parent until
5+ File . exist? ( " #{ ws_dir } /node_modules/react-native-macos/scripts/react_native_pods.rb" ) ||
6+ ws_dir . expand_path . to_s == '/ '
7+ require " #{ ws_dir } /node_modules/react-native-macos/scripts/react_native_pods.rb"
88
99prepare_react_native_project!
1010
1111target 'HelloWorld-macOS' do
12- platform :macos , '11 .0'
12+ platform :macos , '14 .0'
1313 use_native_modules!
1414
1515 # Flags change depending on the env values.
You can’t perform that action at this time.
0 commit comments