From 7607cf24b22b02a81396c819038832a421c1fee3 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Mon, 15 Aug 2022 16:55:18 +0200 Subject: [PATCH] Fix getting build number in Fastlane --- fastlane/Fastfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 7195b5ca..7bf82dd0 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -34,6 +34,7 @@ platform :ios do key_filepath: DEVELOPER_KEY_FILEPATH ) + build = get_build_number(xcodeproj: "Yattee.xcodeproj") version = get_version_number( xcodeproj: "Yattee.xcodeproj", target: "Yattee (iOS)" @@ -41,7 +42,7 @@ platform :ios do build_app( scheme: "Yattee (iOS)", - output_directory: "fastlane/builds/#{version}-#{lane_context[SharedValues::BUILD_NUMBER]}/iOS", + output_directory: "fastlane/builds/#{version}-#{build}/iOS", output_name: "Yattee-#{version}-iOS.ipa", ) @@ -60,6 +61,7 @@ platform :tvos do key_filepath: DEVELOPER_KEY_FILEPATH ) + build = get_build_number(xcodeproj: "Yattee.xcodeproj") version = get_version_number( xcodeproj: "Yattee.xcodeproj", target: "Yattee (tvOS)" @@ -67,7 +69,7 @@ platform :tvos do build_app( scheme: "Yattee (tvOS)", - output_directory: "fastlane/builds/#{version}-#{lane_context[SharedValues::BUILD_NUMBER]}/tvOS", + output_directory: "fastlane/builds/#{version}-#{build}/tvOS", output_name: "Yattee-#{version}-tvOS.ipa", ) @@ -86,6 +88,7 @@ platform :mac do key_filepath: DEVELOPER_KEY_FILEPATH ) + build = get_build_number(xcodeproj: "Yattee.xcodeproj") version = get_version_number( xcodeproj: "Yattee.xcodeproj", target: "Yattee (macOS)" @@ -93,7 +96,7 @@ platform :mac do build_app( scheme: "Yattee (macOS)", - output_directory: "fastlane/builds/#{version}-#{lane_context[SharedValues::BUILD_NUMBER]}/macOS", + output_directory: "fastlane/builds/#{version}-#{build}/macOS", output_name: "Yattee-#{version}-macOS.app", )