[macos-runner] Fix build number bump - agvtool was silently no-oping
Upload rejected with "bundle version must be higher than previously uploaded version: 1" - agvtool new-version requires VERSIONING_SYSTEM = apple-generic, which this project never sets, so it did nothing every run despite reporting success. Pass CURRENT_PROJECT_VERSION directly via xcargs instead, parameterized from the job's run number.
This commit is contained in:
@@ -17,12 +17,17 @@ lane :assemble do |options|
|
||||
# scope a global override to just one target, and update_code_signing_settings
|
||||
# itself can't parse this project's newer .pbxproj format anyway (gem
|
||||
# limitation, not fixable by updating the gem).
|
||||
# agvtool needs VERSIONING_SYSTEM = apple-generic, which this project doesn't
|
||||
# set, so it silently no-ops - pass CURRENT_PROJECT_VERSION directly instead.
|
||||
xcargs = "-skipPackagePluginValidation -skipMacroValidation"
|
||||
xcargs += " CURRENT_PROJECT_VERSION=#{ENV['BUILD_NUMBER']}" if ENV["BUILD_NUMBER"]
|
||||
|
||||
build_app(
|
||||
scheme: "PediFoods App",
|
||||
sdk: "iphoneos",
|
||||
export_method: ENV["BITRISE_DISTRIBUTION_METHOD"] || "app-store",
|
||||
xcconfig: "fastlane/AppStore.xcconfig",
|
||||
xcargs: "-skipPackagePluginValidation -skipMacroValidation",
|
||||
xcargs: xcargs,
|
||||
derived_data_path: "../.build/Darwin/DerivedData",
|
||||
output_directory: "../.build/fastlane/Darwin",
|
||||
skip_archive: ENV["FASTLANE_SKIP_ARCHIVE"] == "YES",
|
||||
|
||||
Reference in New Issue
Block a user