Instruction file imported from roto31/TV-Safari (
.cursor/rules/tvos-asset-catalog-bridging.mdc). Copyright stays with the author.
Asset catalog (tvOS)
imagestack/imagestacklayer: Each layer’sContent.imagesetmust listfilenameentries for tv @1x and @2x where required — no empty slot-onlyimagesarrays.- Alternate app icons: Root-level
*.imagestackbundles are validated strictly whenASSETCATALOG_COMPILER_ALTERNATE_APPICON_NAMESorINCLUDE_ALL_APPICON_ASSETSincludes them. Remove broken stacks or match build settings to real, complete stacks. - Brand
App Icon & Top Shelf Image: App Store (1280×768) vs primary (400×240) stacks — tvos-asset-brand-catalog.mdc. - After icon edits, validate with
xcrun actool(--platform appletvos, correct--app-iconmatching the brand asset name).
Bridging headers (*BridgingHeader.h, TVSafari-Bridging-Header.h)
- Prototypes must be valid C: include headers that define every type (
#include <sys/types.h>foruid_t,<stdint.h>foruint32_t, etc.). - Use named parameters in function declarations (avoid unnamed
uid_t, uint32_tparameters that break PCH parsing with Clang). - Quick check:
clang -fsyntax-onlywith-include TVSafari/TVSafari-Bridging-Header.hand the appletvsimulator SDK.