@@ -22,6 +22,7 @@ SCREENSHOTS_DIR = File.join(FASTLANE_DIR, 'screenshots')
2222WORKSPACE_PATH = File . join ( PROJECT_ROOT_FOLDER , 'WooCommerce.xcworkspace' )
2323IOS_LOCALES = %w[ ar de-DE en-US es-ES fr-FR he id it ja ko nl-NL pt-BR ru sv tr zh-Hans zh-Hant ] . freeze
2424SIMULATOR_VERSION = '15.5' # For screenshots
25+ SCREENSHOTS_SCHEME = 'WooCommerceScreenshots'
2526SCREENSHOT_DEVICES = [
2627 'iPhone 11 Pro Max' ,
2728 'iPhone 8 Plus' ,
@@ -186,7 +187,7 @@ platform :ios do
186187 ios_update_release_notes ( new_version : new_version )
187188 setbranchprotection ( repository : GITHUB_REPO , branch : "release/#{ new_version } " )
188189 setfrozentag ( repository : GITHUB_REPO , milestone : new_version )
189- ios_check_beta_deps ( podfile : 'Podfile' )
190+ ios_check_beta_deps ( podfile : File . join ( PROJECT_ROOT_FOLDER , 'Podfile' )
190191 end
191192
192193 #####################################################################################
@@ -466,7 +467,7 @@ platform :ios do
466467 auth_token : get_required_env ( 'SENTRY_AUTH_TOKEN' ) ,
467468 org_slug : 'a8c' ,
468469 project_slug : 'woocommerce-ios' ,
469- dsym_path : './ WooCommerce.app.dSYM.zip'
470+ dsym_path : File . join ( PROJECT_ROOT_FOLDER , ' WooCommerce.app.dSYM.zip')
470471 )
471472 sh ( 'cd .. && rm WooCommerce.app.dSYM.zip' )
472473
@@ -505,7 +506,7 @@ platform :ios do
505506 alpha_code_signing
506507
507508 # Get the current build version, and update it if needed
508- version_config_path = '../ config/ Version.Public.xcconfig'
509+ version_config_path = File . join ( PROJECT_ROOT_FOLDER , ' config' , ' Version.Public.xcconfig')
509510 versions = Xcodeproj ::Config . new ( File . new ( version_config_path ) ) . to_hash
510511 build_number = generate_installable_build_number
511512 UI . message ( "Updating build version to #{ build_number } " )
@@ -628,7 +629,7 @@ platform :ios do
628629
629630 scan (
630631 workspace : WORKSPACE_PATH ,
631- scheme : 'WooCommerceScreenshots' ,
632+ scheme : SCREENSHOTS_SCHEME ,
632633 build_for_testing : true ,
633634 derived_data_path : DERIVED_DATA_DIR
634635 )
@@ -656,7 +657,7 @@ platform :ios do
656657 rebuild_screenshot_devices
657658
658659 capture_ios_screenshots (
659- scheme : 'WooCommerceScreenshots' ,
660+ scheme : SCREENSHOTS_SCHEME ,
660661
661662 localize_simulator : true ,
662663 languages : languages ,
@@ -671,7 +672,7 @@ platform :ios do
671672 output_directory : SCREENSHOTS_DIR ,
672673
673674 # Output the simulator logs for debugging
674- buildlog_path : './fastlane/ logs',
675+ buildlog_path : File . join ( FASTLANE_DIR , ' logs') ,
675676 output_simulator_logs : true ,
676677 result_bundle : true ,
677678 namespace_log_files : true ,
@@ -735,7 +736,7 @@ platform :ios do
735736 Snapshot ::Options . available_options ,
736737 {
737738 workspace : WORKSPACE_PATH ,
738- scheme : 'WooCommerceScreenshots'
739+ scheme : SCREENSHOTS_SCHEME
739740 }
740741 )
741742
0 commit comments