Skip to content

Commit 7e6461b

Browse files
committed
Declare Push Notifications on the widget extension's App ID
The widget is refreshed by WidgetKit push, so the extension holds its own APNs token and its provisioning profile needs the aps-environment entitlement. The identifiers lane declared App Groups only, so the App Store profile was issued without it and the archive failed on the widget target. The side-by-side test build had the capability added directly through Xcode's provisioning updates, which is why this went unnoticed until the first CI build: that path never touches the Fastfile, and the Fastfile is what CI provisions from.
1 parent 224d6e9 commit 7e6461b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

fastlane/Fastfile

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,8 +178,14 @@ platform :ios do
178178
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS
179179
])
180180

181+
# Push Notifications because the widget is refreshed by WidgetKit push: the
182+
# extension holds its own APNs token and its provisioning profile needs the
183+
# aps-environment entitlement to carry it. Without this the App Store profile
184+
# is issued without it and the archive fails on the widget target, which is
185+
# the first place the omission can be noticed.
181186
configure_bundle_id("LoopFollow Widget Extension", WIDGET_IDENTIFIER, [
182-
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS
187+
Spaceship::ConnectAPI::BundleIdCapability::Type::APP_GROUPS,
188+
Spaceship::ConnectAPI::BundleIdCapability::Type::PUSH_NOTIFICATIONS
183189
])
184190

185191
end

0 commit comments

Comments
 (0)