[Bug] An app's own ExtensionKit extension stops working after signing with a new bundle id

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

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
ios, swift
Ambito
desktop, mobile

Direzione di ricerca

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.

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

Descrizione

bug
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:

  • EXAppExtensionAttributes passed to EXExtensionPointIdentifier in the extension's Info.plist
  • the keys of Extensions/*.appexpt in 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
Lingua principale
Swift
Stelle
4.8k
Fork
430
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

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 claration/feather

Tutte le issue di claration/feather

Issue simili

Altre issue su Swift

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.