@@ -161,25 +161,7 @@ def make_project!(xcodeproj, project_root, target_platform, options)
161161 FileUtils . cp_r ( xcodeproj_src , destination )
162162 name , display_name , version , single_app = app_config ( project_root )
163163 xcschemes_path = File . join ( xcodeproj_dst , 'xcshareddata' , 'xcschemes' )
164-
165- # Read "metalAPIValidation from the app config and apply it to the xcscheme"
166- metal_api_validation = platform_config ( 'metalAPIValidation' , project_root , target_platform )
167- puts "metalAPIValidation: #{ metal_api_validation } "
168-
169- if metal_api_validation
170- xcscheme = File . join ( xcschemes_path , "ReactTestApp.xcscheme" )
171- puts "xcscheme: #{ xcscheme } "
172- xcscheme_content = File . read ( xcscheme )
173- new_content = xcscheme_content . gsub ( /^\s *enableGPUValidationMode\s *=\s *"1"\s *$/ , '' )
174- puts "new_content: #{ new_content } "
175- File . write ( xcscheme , new_content )
176- end
177-
178- unless name . nil?
179- FileUtils . cp ( File . join ( xcschemes_path , 'ReactTestApp.xcscheme' ) ,
180- File . join ( xcschemes_path , "#{ name } .xcscheme" ) )
181- end
182-
164+ configure_xcschemes! ( xcschemes_path , project_root , target_platform , name )
183165
184166 # Link source files
185167 %w[ ReactTestApp ReactTestAppTests ReactTestAppUITests ] . each do |file |
0 commit comments