Playbridge apple

From playbridgeapp/playbridge · View interactive version

Playbridge apple is an AI agent skill from the GitHub repository playbridgeapp/playbridge. Work on PlayBridge's native Apple phone and Apple TV applications. Use for SwiftUI, WebKit, AVPlayer/MPVKit playback, website playback bridges, Xcode/SPM, Bonjour, Keychain, TLS pinning, or Apple protocol consumers under mobile/apple/ or tv/apple/.

How to use this skill

Skill file

PlayBridge Apple

Establish ownership

Work safely

  1. Follow the root AGENTS.md and inspect the owning Xcode project before changing build settings.
  2. Preserve Bonjour/local-network declarations, Keychain storage, protected pairing, and SPKI pin validation.
  3. Check behavioral parity with the corresponding sender or receiver without assuming Android implementation details translate directly to Apple frameworks.
  4. Never commit signing credentials, provisioning data, pairing secrets, or authenticated stream URLs.

Phone playback and website bridge

Verify

Choose focused runners from mobile/apple/tests/README.md. For phone local/website

playback, run the applicable checks from the repository root:

bash mobile/apple/tests/run-phone-player-features-checks.sh
bash mobile/apple/tests/run-phone-engine-checks.sh
bash mobile/apple/tests/run-website-playback-checks.sh
bash mobile/apple/tests/run-playback-error-checks.sh
bash mobile/apple/tests/run-page-cast-coordinator-checks.sh
node --test mobile/apple/tests/PageCastScriptTests.js

Use the isolated simulator MPV probe described in docs/ios-phone-playback.md

when changing the decoder, rendering, TLS or engine lifecycle. It needs a booted

simulator and ffmpeg; use a file outside the repo for private stream URLs.

Host model tests do not prove native decoding, hardware behavior or receiver playback.

Use MPV_FEATURES_PROBE=1 for native speed/language and Fit/Fill/subtitle pixel

checks, MPV_ORIENTATION_PROBE=1 for rotation, and MPV_PHONE_PROXY_PROBE=1

for production loopback playback (requires the existing optional Cast Core

XCFramework). Run modes separately as documented; do not infer visible rendering

from engine options or view geometry alone.

For installed-app lifecycle or Info/edit/remove UI changes, run:

bash mobile/apple/tests/run-bridged-app-declaration-checks.sh
bash mobile/apple/tests/run-browser-startup-checks.sh --bridged-apps
bash mobile/apple/tests/run-bridged-app-ui-checks.sh

The latter two require a booted simulator; UI tests use an isolated installation.

Report physical iPhone gesture checks separately.

Build the changed target with Xcode. From mobile/apple/PlayBridge Phone/, the

phone simulator build is:

xcodebuild -project "PlayBridge Phone.xcodeproj" -scheme "PlayBridge Phone" -configuration Debug -destination 'generic/platform=iOS Simulator' CODE_SIGNING_ALLOWED=NO build

For package/native-library integration, also build Release for

generic/platform=iOS with CODE_SIGNING_ALLOWED=NO. An unsigned generic-device

build checks compilation/linking; it does not install the app or validate signing.

From tv/apple/PlayBridge TV/:

xcodebuild -project "PlayBridge TV.xcodeproj" -scheme "PlayBridge TV" -configuration Debug -destination 'generic/platform=tvOS' build

Before building the TV app for a device or simulator test, run sh cast/build-apple-tvos.sh from the repository root once. It writes the receiver proxy XCFramework to the ignored tv/apple/Native/, which CastCoreOptional.xcconfig links when present. Without it the build still succeeds but uses the unavailable stub, so website casts (page casts and linked pages) fail on the TV.

Export compliance: do not add ITSAppUsesNonExemptEncryption to either app. MPVKit ships GnuTLS, YES is rejected on upload (ITMS-90592) and NO is inaccurate. Answer the question per build in App Store Connect and keep France out of availability; see docs/app-store-submission-drafts.md.

Report simulator, SDK, signing, or package-resolution limitations explicitly; do not treat an unavailable Apple toolchain as successful verification.

For Google Cast adapter or native ABI work, build the optional XCFramework from

the repository root with sh cast/build-apple.sh, then build the phone target

with it linked as Do Not Embed. The script intentionally refuses to

overwrite an existing generated XCFramework.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.