[Bug] An app's own ExtensionKit extension stops working after signing with a new bundle id
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 55/100
調査の方向性
Start in SigningHandler.swift at _modifyPluginIdentifiers, where CFBundleIdentifier is already rewritten, and check how the extension's Info.plist and the Extensions/*.appexpt keys are handled alongside it. Confirm the old app bundle id appears in EXAppExtensionAttributes and the appexpt keys before changing anything. Done means both values follow the new bundle id, which needs a signed build to verify on device.
索引モデルが issue の本文から書いたものです。
説明
Report
I make Empo, which ships an ExtensionKit extension in Empo.app/Extensions/ that attaches to an extension point the app declares itself (sh.mateo.empo.game-process, declared in Extensions/Empo.appexpt).
When I sign it with Feather and change the bundle id, the install works, but the app can't find its own extension. AppExtensionPoint.Monitor fails with "Host is not entitled observe" (com.apple.extensionKit.errorDomain, code 16), but an Xcode install of the same app works though.
The problem issthat Feather renames the bundle id of the extension, but the extension point name keeps the old bundle id in 2 places:
EXAppExtensionAttributespassed toEXExtensionPointIdentifierin the extension's Info.plist- the keys of
Extensions/*.appexptin the main app
iOS only lets an app watch extension points named after its own bundle id, so the old name doesn't match anymore
Proposed fix: in _modifyPluginIdentifiers in SigningHandler.swift, rename those 2 values the same way as CFBundleIdentifier, by swapping the old app bundle id for the new one.
zsign has the same gap: https://github.com/zhlynn/zsign/pull/415.
Request Agreement
- I have read the requirements for opening an issue above
Contributor Checks
- I am willing to attempt to make a pull request to fix this bug
- 主要言語
- Swift
- スター
- 4.8k
- フォーク
- 430
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
claration/feather のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
enhancement
難易度 5/5 1週間以上 初心者へのやさしさ 12/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 18/100
-
bug
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
claration/feather の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
macos-27 menubar punkto regression
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
thaw-app/Thaw#1791 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 78/100
メンテナーはふだん 4 日以内に返信
-
bug help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
Agent-Clubhouse/Clubhouse-Go#902 ·
メンテナーはふだん 1 日以内に返信
-
CI failed on qaオープンci-failure
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
CrisH2307/stephen#601 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信