Skip to content

feat(app): turn CarPlay on for iOS EAS builds - #18

Merged
perminder-klair merged 1 commit into
mainfrom
feat/carplay-on
Nov 27, 2026
Merged

perminder-klair merged 1 commit into
mainfrom
feat/carplay-on

Conversation

@perminder-klair

Copy link
Copy Markdown
Contributor

Follows #15 (CarPlay behind SUBWAVE_CARPLAY=1). On main (daf0f30).

Summary

Apple granted team BU9RD766GN the CarPlay Audio entitlement on 2026-11-27, and "CarPlay Audio App (CarPlay framework)" is now on for the com.getsubwave.app App ID. So a signed device build can carry com.apple.developer.carplay-audio, and every EAS iOS build now turns the CarPlay app on.

 "development" / "development-device" / "preview" / "production"
   "ios": {
     "image": "macos-tahoe-26.6-xcode-27.1",
+    "env": { "SUBWAVE_CARPLAY": "1" }
   }
  • iOS only. The flag sits in each profile's ios.env, never in a profile-level env (which would reach Android) and never under android. A profile that extends production, like feat(app): Android Auto error states, Stations tab, and a build flag #17's production-auto and apk, inherits it for iOS only, so this doesn't conflict with feat(app): Android Auto error states, Stations tab, and a build flag #17.
  • The flag stays. plugins/withCarPlay.js is unchanged: unset, the Info.plist and entitlements are what they are without the plugin. Dropping it from a profile's ios.env cuts a build without CarPlay. A plain local npx expo prebuild -p ios still has no CarPlay.
  • A new test in scripts/carplay-plugin.test.ts checks that every iOS profile sets the flag and that no profile sets it at profile level or for Android.
  • Docs: CLAUDE.md, the docs/TESTING.md CarPlay section and the plugin's header now say the grant landed and CarPlay is on in EAS builds. docs/RELEASE.md gets a note under the iOS store build.

Evidence

The SUBWAVE_CARPLAY=1 npx expo prebuild -p ios --clean and Release build below are the same ones that failed on #15 with Entitlement com.apple.developer.carplay-audio not found and could not be included in profile:

xcodebuild -workspace SUBWAVE.xcworkspace -scheme SUBWAVE -configuration Release \
  -destination generic/platform=iOS CODE_SIGN_STYLE=Automatic \
  DEVELOPMENT_TEAM=BU9RD766GN -allowProvisioningUpdates build
** BUILD SUCCEEDED **    (Xcode 27, iPhoneOS 27.2 SDK; no "not found" error)

Provisioning Profile: "iOS Team Provisioning Profile: com.getsubwave.app"   (regenerated)
  TeamIdentifier                     BU9RD766GN
  Entitlements:carplay-audio         true

codesign -d --entitlements :- SUBWAVE.app
  application-identifier             BU9RD766GN.com.getsubwave.app
  com.apple.developer.carplay-audio  true
  com.apple.security.application-groups [group.com.getsubwave.app]

The widget extension (SUBWAVELive.appex) signs with its own profile and, as expected, has no CarPlay entitlement.

  • npm test: 594 passed, 5 skipped (the checks that need a station checkout). npm run lint: clean apart from the existing warning in onboarding.tsx.
  • npx expo-updates fingerprint:generate --platform ios gives the same hash with and without the flag. Flag-on and flag-off binaries share a runtime version, so OTAs reach both. That's fine, because their JS is identical.
  • Not run: an App Store distribution export. The local build used automatic signing with an Apple Development profile. EAS makes the App Store profile from the same App ID, which now has the capability. The CarPlay screens, the car-first launch and the iPad second window are still unrun (see docs/TESTING.md). They need a car or DeviceHub's CarPlay Simulator with a USB iPhone, which a development-device build can now be signed for.

Merge Danger

Door: two-way

Blast Radius: every iOS build from the next eas build on; Android untouched

The next iOS store build ships the CarPlay app: the new scene manifest (UIApplicationSupportsMultipleScenes true, SubwavePhoneSceneDelegate as the phone delegate, the CarPlay scene) and the entitlement. That phone delegate now runs on every iPhone launch, and on iPad a second window is refused. It's a binary change, so OTA can't reach existing installs. To roll back, take the flag out of production.ios.env and cut a new build.

Apple granted team BU9RD766GN the CarPlay Audio entitlement (2026-11-27)
and it is on for the com.getsubwave.app App ID, so a signed device build
now carries com.apple.developer.carplay-audio. eas.json sets
SUBWAVE_CARPLAY=1 under each profile's ios.env, never at profile level or
for Android; the flag stays so a build can leave CarPlay out. A test pins
that, and the docs say CarPlay is granted and on.
@perminder-klair
perminder-klair merged commit ec19199 into main Nov 27, 2026
2 checks passed
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