From a5e4f8b48be2c922b491a00aaa9f110d89f9a193 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakob=20K=C3=B6rber?= <56073945+jakobkoerber@users.noreply.github.com> Date: Wed, 13 Dec 2023 17:42:59 +0100 Subject: [PATCH] [Bugfix] Fix Versioning on iOS (#167) --- ios/fastlane/Fastfile | 6 +++++- ios/iosVersion.txt | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 ios/iosVersion.txt diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index e7d6247c..94503933 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -20,7 +20,11 @@ platform :ios do skip_certificate_matching: true ) - previous_build_number = latest_testflight_build_number + increment_version_number( + version_number: File.read("../iosVersion.txt") + ) + + previous_build_number = latest_testflight_build_number(initial_build_number: 0, version: File.read("../iosVersion.txt")) current_build_number = previous_build_number + 1 diff --git a/ios/iosVersion.txt b/ios/iosVersion.txt new file mode 100644 index 00000000..64b5ae39 --- /dev/null +++ b/ios/iosVersion.txt @@ -0,0 +1 @@ +4.4.0 \ No newline at end of file