[Bug] An app's own ExtensionKit extension stops working after signing with a new bundle id
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 55/100
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- Swift
- Stars
- 4.8k
- Forks
- 430
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from claration/feather
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
enhancement
Difficulty 5/5 Over a week Newbie friendliness 12/100
-
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 18/100
-
bug
Difficulty 4/5 3-5 days Newbie friendliness 25/100
All issues in claration/feather
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
macos-27 menubar punkto regression
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
thaw-app/Thaw#1791 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 Half a day Newbie friendliness 78/100
Maintainers usually reply within 4 days
-
bug help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Agent-Clubhouse/Clubhouse-Go#902 ·
Maintainers usually reply within 1 day
-
CI failed on qaOpenci-failure
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
CrisH2307/stephen#601 · 1 comment ·
Maintainers usually reply within 1 day