From 875441b27fda2ce99b108e1b97e788047557f196 Mon Sep 17 00:00:00 2001 From: Krille Fear Date: Sat, 27 Nov 2021 10:50:04 +0100 Subject: [PATCH] CI: Update iOS fastlane --- ios/fastlane/Fastfile | 13 ++++++++++--- scripts/release-ios-testflight.sh | 2 ++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index e167ac5d..1a97ed53 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -18,9 +18,16 @@ default_platform(:ios) platform :ios do desc "Push a new beta build to TestFlight" lane :beta do - increment_build_number(xcodeproj: "Runner.xcodeproj") - build_app(workspace: "Runner.xcworkspace", scheme: "Runner") - upload_to_testflight + increment_build_number( + xcodeproj: "Runner.xcodeproj", + build_number: latest_testflight_build_number + 1 + ) + re = /version:\s([0-9]*\.[0-9]*\.[0-9]*)\+[0-9]*/i + config = File.read("../../pubspec.yaml") + version_name = config.match(re).captures[0] + increment_version_number(version_number: version_name) + #build_app(workspace: "Runner.xcworkspace", scheme: "Runner") + #upload_to_testflight end end diff --git a/scripts/release-ios-testflight.sh b/scripts/release-ios-testflight.sh index fe06b7ad..49af9e37 100755 --- a/scripts/release-ios-testflight.sh +++ b/scripts/release-ios-testflight.sh @@ -3,6 +3,8 @@ git apply ./scripts/enable-android-google-services.patch flutter clean flutter pub get cd ios +rm -rf Pods +rm Podfile.lock pod install pod update cd ..