Skip to content

feat(sign): tvOS + watchOS-aware App Store signing#2

Open
proggeramlug wants to merge 4 commits into
mainfrom
feat/tvos-watchos-sign
Open

feat(sign): tvOS + watchOS-aware App Store signing#2
proggeramlug wants to merge 4 commits into
mainfrom
feat/tvos-watchos-sign

Conversation

@proggeramlug
Copy link
Copy Markdown
Contributor

perry-ship treated every non-macOS sign job as iOS — tvOS bundles were packaged + uploaded with altool --type ios, so App Store Connect validated them against iOS rules and rejected them (CFBundleIcons/CFBundlePackageType/UIRequiredDeviceCapabilities errors).

This adds BuildTarget::TvosSign / WatchosSign, advertises tvos-sign/watchos-sign capabilities, routes them through the iOS sign path for the shared steps (provisioning embed, codesign, .ipa creation) but skips the iOS-icon actool mangling, and parameterizes the App Store upload --type (tvos for tvOS). Pairs with builder-linux#4 (emit needs_finishing=tvos/watchos) so the hub routes a tvos-sign job here.

watchOS upload --type left as ios placeholder pending confirmation (TODO in code).

perry-ship treated every non-macOS sign job as iOS, so tvOS bundles were
packaged + uploaded (altool --type ios) against iOS validation rules and
rejected. Add BuildTarget::TvosSign / WatchosSign, advertise tvos-sign /
watchos-sign capabilities, route them through the iOS sign path for the
shared steps (provisioning embed, codesign, .ipa) but SKIP the iOS-icon
actool mangling, and parameterize the App Store upload --type (tvos for
tvOS). watchOS upload type left as ios placeholder pending confirmation.
tvOS uploads were validated as tvOS but rejected for: CFBundlePackageType
(now forced to APPL), missing CFBundleIcons.CFBundlePrimaryIcon (now a
tvOS Brand Assets app icon via actool --platform appletvos), and an
unsupported SDK (now appletvos DT/SDK values via query_tvos_sdk_info,
overwriting the cross-compiled iphoneos DT keys). TvosSign path only;
iOS untouched.
actool needs: 2-layer imagestacks (App Icon + App Icon - App Store),
--app-icon = brandassets bundle name 'App Icon & Top Shelf Image' (not
'App Icon'), --target-device tv, and a pre-existing output dir. This
emits CFBundleIcons.CFBundlePrimaryIcon + TVTopShelfImage.{Primary,
PrimaryImageWide}. Also add UIRequiredDeviceCapabilities=[arm64].
Assets.car generation still needs the tvOS simulator runtime in the VM.
Apple validation requires both @1x and @2x for tvOS App Icon imagestack
layers and Top Shelf images (App Store icon stays 1x). Was @1x-only ->
'missing an image for the background layer with a scale value of 2'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant