Extensions inside an embedded watch app are not renamed or signed (AppexBundleIDNotPrefixed)
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 72/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- mobile-dev
Direzione di ricerca
Start in crates/plume_utils/src/bundle.rs at collect_embeded_bundles_from_dir and trace how nested bundles are collected and passed to identifier matching, registration, and signing. Check how collect_bundles_sorted orders nested bundles, then add coverage for a widget extension inside Watch.app. Done means the nested extension is collected and receives the expected identifier and signing flow.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What happens
Installing an IPA whose watch app contains a widget extension (watch complications) fails on the device:
AppexBundleIDNotPrefixed (Appex bundle at ".../App.app/Watch/Watch.app/PlugIns/Widget.appex"
with identifier "com.example.app.watchkitapp.widget" does not have expected identifier prefix
"com.example.app.<TEAMID>.watchkitapp.")
The layout is the usual one for a single-target watchOS app (WKApplication) with a WidgetKit extension:
Payload/App.app
├── PlugIns/AppWidget.appex ← renamed and signed, fine
└── Watch/Watch.app ← renamed and signed, fine
└── PlugIns/Widget.appex ← never renamed, registered or signed
Cause
collect_embeded_bundles_from_dir in crates/plume_utils/src/bundle.rs does not descend into a nested .app:
if bundle.bundle_type != BundleType::App {
if let Ok(embedded) = bundle.collect_nested_bundles() {
bundles.extend(embedded);
}
}
So the watch app is collected, gets the new identifier from set_matching_identifier and is signed, but the extension inside
it is never collected. Its identifier keeps the old prefix, it gets no app ID or profile, and installd rejects the IPA.
Suggestion
Also collect the bundles inside an embedded .app (for example everything under Watch/*.app), so that
set_matching_identifier, app ID registration and signing reach Watch.app/PlugIns/*.appex too. collect_bundles_sorted
already sorts by depth, so they would still be signed from the inside out.
Seen with
Impactor on Windows, a free Apple ID, an IPA built unsigned with xcodebuild and ad-hoc signed with each part's
entitlements (an app group shared by the app, its widget, the watch app and the watch widget). The code above is from
main as of v2.7.3.
- Lingua principale
- Rust
- Stelle
- 3.4k
- Fork
- 224
- Merge medio
- 34m
- PR unite (30g)
- 2
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di claration/impactor
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 50/100
-
bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
-
[Bug] Unable to openApertabug
Difficoltà 3/5 Mezza giornata Idoneità per principianti 35/100
-
[Feature] Add local AnisetteApertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 35/100
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
Tutte le issue di claration/impactor
Issue simili
-
claim
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
Nixitov/Riptide-Native#946 ·
I maintainer di solito rispondono entro 1 giorno
-
area: ai-assistants documentation help wanted
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
BetaBots-LLC/latticegate#17 ·
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 94/100
storytold/craft-libs#5594 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
听歌识曲历史跳转后对应音源界面无法返回Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
LingyunStudio/RustMusic#16 ·