From 7445561e5cc1b3d3dc3fe5fe06f42cc7a77e9440 Mon Sep 17 00:00:00 2001 From: Daniel Arantes Loverde Date: Fri, 31 Jul 2026 10:54:04 -0300 Subject: [PATCH] [macos-runner] Revert update_code_signing_settings - unusable on this project format The xcodeproj gem can't parse PediFoods.xcodeproj's .pbxproj (newer Xcode format than any released gem version supports), so the runtime override always fails with a misleading "very old project file" error. Signing config for the app target needs to live in the checked-in project settings instead (set once via Xcode's GUI), since no command-line override can be scoped to a single target without also breaking the SPM package's own ephemeral targets. --- Darwin/fastlane/Fastfile | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/Darwin/fastlane/Fastfile b/Darwin/fastlane/Fastfile index 656ae00..17b1135 100644 --- a/Darwin/fastlane/Fastfile +++ b/Darwin/fastlane/Fastfile @@ -8,21 +8,15 @@ lane :assemble do |options| # only build the iOS side of the app ENV["SKIP_ZERO"] = "true" - # Scope manual signing to just the app target - the SPM package's own - # generated targets (PediFoods, pedi-foods_PediFoods) explicitly don't - # support provisioning profiles and must stay on Automatic, so a blanket - # xcargs override breaks them. - if ENV["DEVELOPMENT_TEAM"] - update_code_signing_settings( - use_automatic_signing: false, - path: "PediFoods.xcodeproj", - code_sign_identity: "Apple Distribution", - profile_name: "com.br.pedifoods.app AppStore", - team_id: ENV["DEVELOPMENT_TEAM"], - targets: ["PediFoods App"] - ) - end - + # Manual signing (team/identity/profile) for the "PediFoods App" target is + # baked directly into PediFoods.xcodeproj's own project settings - not + # overridden here. A command-line xcargs/update_code_signing_settings + # override applies to the entire build graph, including the SPM package's + # own ephemeral targets (PediFoods, pedi-foods_PediFoods) which explicitly + # reject provisioning profiles and must stay Automatic; there's no way to + # 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). build_app( scheme: "PediFoods App", sdk: "iphoneos",