Extensions inside an embedded watch app are not renamed or signed (AppexBundleIDNotPrefixed)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 72/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- rust
- 领域
- mobile-dev
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- Rust
- 星标
- 3.4k
- 派生
- 224
- 平均合并
- 34 分钟
- 30 天内合并 PR
- 2
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
claration/impactor 的其他 Issue
-
bug
难度 4/5 3-5 天 新手友好度 50/100
-
bug
难度 4/5 3-5 天 新手友好度 42/100
-
bug
难度 3/5 半天 新手友好度 35/100
-
enhancement
难度 5/5 一周以上 新手友好度 35/100
-
enhancement
难度 4/5 3-5 天 新手友好度 45/100
查看 claration/impactor 的全部 Issue
相似的 Issue
-
claim
难度 2/5 1-3 小时 新手友好度 88/100
Nixitov/Riptide-Native#946 ·
维护者通常 1 天内回复
-
area: ai-assistants documentation help wanted
难度 2/5 1-3 小时 新手友好度 78/100
BetaBots-LLC/latticegate#17 ·
-
难度 1/5 1 小时以内 新手友好度 94/100
storytold/craft-libs#5594 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 78/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 65/100
LingyunStudio/RustMusic#16 ·