fastlane: submit deduce la version del Info.plist en vez de hardcodearla
Estaba fijada a 2.0.1, asi que en la siguiente release habria subido metadata a la version equivocada. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012Ks8uUcMA9mjypVK7F2Pkt
This commit is contained in:
+6
-1
@@ -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:<number>") 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,
|
||||
|
||||
Reference in New Issue
Block a user