Remove target-level automatic signing from Extensions-WatchWidgets#5033
Merged
Conversation
Adding the provisioning profile was necessary but not sufficient: the App-Release archive still fails with Extensions-WatchWidgets has conflicting provisioning settings. Extensions-WatchWidgets is automatically signed, but provisioning profile iOS App Store - Extensions-WatchWidgets has been manually specified. The target was created via the Xcode new-target wizard, which hard-coded CODE_SIGN_STYLE = Automatic into its Debug and Release build configs. Every other shipping target leaves it unset and inherits from the xcconfigs (Automatic for Debug, Manual for the App-Release archive, which also sets PROVISIONING_PROFILE_SPECIFIER[sdk=watchos*] = iOS App Store - $(TARGET_NAME)). The target-level Automatic overrides the xcconfig's Manual while the manual specifier is still inherited, and xcodebuild rejects that combination at signing-settings resolution, before the profile is even used. Removing the two lines lets WatchWidgets sign exactly like WatchApp and the other extensions. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a CI archive failure for the Extensions-WatchWidgets target by removing a target-level signing override so code signing settings can correctly inherit from the shared xcconfig configuration (Automatic for Debug, Manual + provisioning profile for release archives).
Changes:
- Removed
CODE_SIGN_STYLE = Automaticfrom theExtensions-WatchWidgetstarget’s Debug build settings. - Removed
CODE_SIGN_STYLE = Automaticfrom theExtensions-WatchWidgetstarget’s Release build settings.
Contributor
|
Found 3 unused localization strings in the codebase. Click to see detailsTo remove them, run the |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #5032. Committing the provisioning profile was necessary but not sufficient: the Distribute workflow's
App-Releasearchive still fails with the same error (latest failing run):Extensions-WatchWidgets(added in #5027) was created via the Xcode new-target wizard, which hard-codedCODE_SIGN_STYLE = Automaticinto its Debug and Release build configs. Every other shipping target (App,WatchApp, allExtensions-*) leavesCODE_SIGN_STYLEunset at the target level and inherits it from the xcconfigs:Configuration/HomeAssistant.xcconfig→Automaticfor DebugConfiguration/HomeAssistant.release.xcconfig→Manualfor the archive, plusPROVISIONING_PROFILE_SPECIFIER[sdk=watchos*] = iOS App Store - $(TARGET_NAME)The target-level
Automaticoverrode the xcconfig'sManualwhile the manual profile specifier was still inherited. xcodebuild rejects that combination at signing-settings resolution — before the profile is even used — which is why adding the profile in #5032 didn't clear it.Removing the two lines lets WatchWidgets resolve signing exactly like
WatchApp:Manual+ theiOS App Store - Extensions-WatchWidgetsprofile for the release archive,Automaticfor local Debug builds.Changes
CODE_SIGN_STYLE = AutomaticfromExtensions-WatchWidgets(Debug + Release).🤖 Generated with Claude Code