Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Push notification support is buggy

オープン
#169 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
停滞
技術スタック
ios, swift

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
Swift
スター
5.5k
フォーク
163
平均マージ
19時間 33分
マージ済み PR(30日)
25

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

xtool-org/xtool のほかの issue

xtool-org/xtool の issue をすべて見る

似ている issue

Swift の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。