Extensions inside an embedded watch app are not renamed or signed (AppexBundleIDNotPrefixed)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- rust
- Lĩnh vực
- mobile-dev
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Rust
- Star
- 3.4k
- Fork
- 224
- Merge trung bình
- 34 phút
- Pull request đã merge (30 ngày)
- 2
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của claration/impactor
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 50/100
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
[Bug] Unable to openĐang mởbug
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 35/100
-
[Feature] Add local AnisetteĐang mởenhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
Tất cả issue của claration/impactor
Issue tương tự
-
claim
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
Nixitov/Riptide-Native#946 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area: ai-assistants documentation help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
BetaBots-LLC/latticegate#17 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 94/100
storytold/craft-libs#5594 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Maintainer thường phản hồi trong vòng 1 ngày
-
听歌识曲历史跳转后对应音源界面无法返回Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
LingyunStudio/RustMusic#16 ·