From cedefb5c975a288244cfb852a6228bc4d53edd51 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Sun, 19 Apr 2026 13:33:15 +0200 Subject: [PATCH] Fix fastlane mac beta build for multiplatform scheme Without sdk:"macosx", gym treats the multiplatform scheme as iOS and fails with "IPA invalid". Without an explicit destination xcodebuild picked tvOS. The output_name also needed the .app suffix removed since gym appends .pkg for macOS app-store exports. --- fastlane/Fastfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/fastlane/Fastfile b/fastlane/Fastfile index 51e88653..c2d17e74 100644 --- a/fastlane/Fastfile +++ b/fastlane/Fastfile @@ -266,8 +266,10 @@ platform :mac do build_mac_app( scheme: SCHEME, + sdk: "macosx", + destination: "generic/platform=macOS", output_directory: "fastlane/builds/#{version}-#{build}/macOS", - output_name: "#{APP_NAME}-#{version}-macOS.app", + output_name: "#{APP_NAME}-#{version}-macOS", export_method: "app-store", export_options: { provisioningProfiles: {