[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.
This commit is contained in:
Daniel Arantes Loverde
2026-07-31 10:54:04 -03:00
parent 28f145f392
commit 7445561e5c

View File

@@ -8,21 +8,15 @@ lane :assemble do |options|
# only build the iOS side of the app # only build the iOS side of the app
ENV["SKIP_ZERO"] = "true" ENV["SKIP_ZERO"] = "true"
# Scope manual signing to just the app target - the SPM package's own # Manual signing (team/identity/profile) for the "PediFoods App" target is
# generated targets (PediFoods, pedi-foods_PediFoods) explicitly don't # baked directly into PediFoods.xcodeproj's own project settings - not
# support provisioning profiles and must stay on Automatic, so a blanket # overridden here. A command-line xcargs/update_code_signing_settings
# xcargs override breaks them. # override applies to the entire build graph, including the SPM package's
if ENV["DEVELOPMENT_TEAM"] # own ephemeral targets (PediFoods, pedi-foods_PediFoods) which explicitly
update_code_signing_settings( # reject provisioning profiles and must stay Automatic; there's no way to
use_automatic_signing: false, # scope a global override to just one target, and update_code_signing_settings
path: "PediFoods.xcodeproj", # itself can't parse this project's newer .pbxproj format anyway (gem
code_sign_identity: "Apple Distribution", # limitation, not fixable by updating the gem).
profile_name: "com.br.pedifoods.app AppStore",
team_id: ENV["DEVELOPMENT_TEAM"],
targets: ["PediFoods App"]
)
end
build_app( build_app(
scheme: "PediFoods App", scheme: "PediFoods App",
sdk: "iphoneos", sdk: "iphoneos",