Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Push notification support is buggy

Aperta
#169 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
35/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
ios, swift

Direzione di ricerca

Start by tracing the provisioning flow invoked by xtool dev, especially how it handles push-notification capabilities and repeated runs. Reproduce the reported failure with push notifications enabled; done means subsequent provisioning runs succeed without the reported 404 or certificate-revocation workaround.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

bug

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

Lingua principale
Swift
Stelle
5.5k
Fork
163
Merge medio
19h 16m
PR unite (30g)
26

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di xtool-org/xtool

Tutte le issue di xtool-org/xtool

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.