diff --git a/fastlane/Fastfile b/fastlane/Fastfile index d48587e..cb64744 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -59,6 +59,11 @@ platform :ios do newest ? newest.last : [] end + # The shipped version lives in the Info.plist, not in MARKETING_VERSION. + def shipped_app_version + `/usr/bin/plutil -extract CFBundleShortVersionString raw MealMood/Resources/Info.plist`.strip + end + desc "Show the App Store state of each version (review status, release type)" lane :status do require 'spaceship' @@ -81,7 +86,7 @@ platform :ios do UI.user_error!("pass build:") unless options[:build] upload_to_app_store( api_key: asc_api_key, - app_version: options[:version] || "2.0.1", + app_version: options[:version] || shipped_app_version, build_number: options[:build], skip_binary_upload: true, skip_metadata: false,