-
Notifications
You must be signed in to change notification settings - Fork 92
Description
Description
When attempting to add push notification support to my app, and then calling xtool dev, it provisions the app once, but then fails to provision subsequent times. with the following error:
Error: Unexpected response, expected status code: noContent, response: notFound(DeveloperAPI.Operations.BundleIdCapabilitiesDeleteInstance.Output.NotFound(body: DeveloperAPI.Operations.BundleIdCapabilitiesDeleteInstance.Output.NotFound.Body.json(DeveloperAPI.Components.Schemas.ErrorResponse(errors: Optional([DeveloperAPI.Components.Schemas.ErrorResponse.ErrorsPayloadPayload(id: Optional("c62180eb-114e-47e8-80c7-0ef8934790a3"), status: "404", code: "NOT_FOUND", title: "The specified resource does not exist", detail: "There is no resource of type 'bundleIdCapabilities' with id 'N5ZK222TTY_PUSH_NOTIFICATIONS'", source: Optional(DeveloperAPI.Components.Schemas.ErrorResponse.ErrorsPayloadPayload.SourcePayload.ErrorSourcePointer(DeveloperAPI.Components.Schemas.ErrorSourcePointer(pointer: "data/id"))), links: nil, meta: nil)])))))
Workaround:
Add a APS Certificate to your app in developer.apple.com call xtool dev you'll get the following:
Error: Unexpected response, expected status code: noContent, response: forbidden(DeveloperAPI.Operations.BundleIdCapabilitiesDeleteInstance.Output.Forbidden(body: DeveloperAPI.Operations.BundleIdCapabilitiesDeleteInstance.Output.Forbidden.Body.json(DeveloperAPI.Components.Schemas.ErrorResponse(errors: Optional([DeveloperAPI.Components.Schemas.ErrorResponse.ErrorsPayloadPayload(id: Optional("3ea5e9c1-8626-41ca-8730-e121b83bbcc8"), status: "403", code: "FORBIDDEN_ERROR", title: "This request is forbidden for security reasons", detail: "This certificate can only be revoked by Apple Developer Program Support. https://developer.apple.com/support", source: nil, links: nil, meta: nil)])))))
Then revoke the certificate from the developer portal.
xtool dev will then work again, but only once.
Environment
Please provide as much of the following information as is relevant.
Host OS (macOS/Linux/WSL):
Linux p16 6.16.7-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 11 Sep 2025 17:42:36 +0000 x86_64 x86_64 x86_64 GNU/Linux
Host OS version:
PRETTY_NAME="Ubuntu 24.04.2 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.2 LTS (Noble Numbat)"
VERSION_CODENAME=noble
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=noble
LOGO=ubuntu-logo
iOS device version:
18.6.2
Swift version:
Swift version 6.1.2 (swift-6.1.2-RELEASE)
Target: x86_64-unknown-linux-gnu
SDK version:
iPhoneOS18.5.sdk