From 764ef367c391b5c0942ce23340dbd0bae2537630 Mon Sep 17 00:00:00 2001 From: farfromrefug Date: Wed, 9 Oct 2024 21:32:30 +0200 Subject: [PATCH] chore: fastlae --- fastlane/Fastfile | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 1643e21a..e04bc224 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -333,20 +333,27 @@ platform :ios do fastlane_match(type: 'appstore', api_key: api_key) end prepare(platform:'ios') - if (ENV["GITHUB_ACTIONS"] == 'true') - # automatic code signing - update_code_signing_settings( - use_automatic_signing: true, - path: "./platforms/ios/#{$ios_scheme}.xcodeproj" + # if (ENV["GITHUB_ACTIONS"] == 'true') + # # automatic code signing + # update_code_signing_settings( + # use_automatic_signing: true, + # path: "./platforms/ios/#{$ios_scheme}.xcworkspace" + # ) + # build_ios_app( + # output_directory:"dist", + # scheme: $ios_scheme, + # workspace: "./platforms/ios/#{$ios_scheme}.xcworkspace" + # ) + # else + build_ios_app( + output_directory:"dist", + scheme: $ios_scheme, + workspace: "./platforms/ios/#{$ios_scheme}.xcworkspace" + export_options: { + provisioningProfiles: ENV['MATCH_PROVISIONING_PROFILE_MAPPING'] ) - end - build_ios_app( - export_xcargs: '-allowProvisioningUpdates', - xcargs: "-allowProvisioningUpdates", - output_directory:"dist", - scheme: $ios_scheme, - workspace: "./platforms/ios/#{$ios_scheme}.xcworkspace" - ) + + # end end desc 'Ship iOS build to Testflight.'