Skip to content

fix(tvos): match Top Shelf bundle version to host app for TestFlight - #32

Merged
zZebrahz merged 1 commit into
mainfrom
fix/topshelf-bundle-version
Jun 30, 2026
Merged

zZebrahz merged 1 commit into
mainfrom
fix/topshelf-bundle-version

Conversation

@zZebrahz

@zZebrahz zZebrahz commented Jun 30, 2026 •

Copy link
Copy Markdown
Contributor

Problem

The embedded SiloTVTopShelf extension hard-coded its version keys in iosApp/TopShelf/Info.plist:

<key>CFBundleShortVersionString</key><string>0.1.0</string>
<key>CFBundleVersion</key><string>1</string>

The tvOS release lane (added in #31) injects MARKETING_VERSION and CURRENT_PROJECT_VERSION as global xcargs overrides. Those only reach a target's bundle if its plist references the variable. The host tvOS app does (tvOS-Info.plist uses $(MARKETING_VERSION)/$(CURRENT_PROJECT_VERSION)), so it gets e.g. 1.4.0 (5). The Top Shelf .appex ignored them and shipped 0.1.0 (1).

App Store Connect requires an embedded extension's short version and build number to match the containing app, so every tvOS upload would be rejected with a bundle-version mismatch. (Latent only because CI hasn't run a real tvOS build yet — and it affects the build number even at marketing version 0.1.0.)

Credit: caught by the Codex review on #31.

Fix

Reference the same build-setting variables as the host app:

<key>CFBundleShortVersionString</key><string>$(MARKETING_VERSION)</string>
<key>CFBundleVersion</key><string>$(CURRENT_PROJECT_VERSION)</string>

SiloTVTopShelf already defines MARKETING_VERSION: "0.1.0" and CURRENT_PROJECT_VERSION: 1 in project.yml, so local/default builds keep 0.1.0 (1) exactly as before; CI's global overrides now apply to the host app and the extension in lockstep.

Test

  • Local/default build: appex resolves to 0.1.0 (1) (unchanged).
  • CI release build: appex inherits the tag-derived MARKETING_VERSION and the latest_testflight_build_number + 1, matching the host SiloTV app → no ASC mismatch.

Summary by CodeRabbit

  • Chores
    • Updated app version settings to use project-managed version values instead of fixed numbers, making releases easier to keep in sync.

The embedded SiloTVTopShelf .appex hard-coded CFBundleShortVersionString=0.1.0
and CFBundleVersion=1, so the tvOS release lane's global MARKETING_VERSION /
CURRENT_PROJECT_VERSION xcargs overrides reached the host app but not the
extension. App Store Connect requires an embedded extension's version and build
number to match the containing app, so every tvOS upload would be rejected with
a bundle-version mismatch. Reference the same build-setting variables as the
host tvOS app; project.yml's SiloTVTopShelf base settings keep local builds at
0.1.0 (1).
@coderabbitai

coderabbitai Bot commented Jun 30, 2026 •

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 1c828d14-b2a6-4642-bba3-75117f5c0627

📥 Commits

Reviewing files that changed from the base of the PR and between cce652a and 2ce8d61.

📒 Files selected for processing (1)
  • iosApp/TopShelf/Info.plist

📝 Walkthrough

Walkthrough

CFBundleShortVersionString and CFBundleVersion in iosApp/TopShelf/Info.plist are changed from hardcoded values (0.1.0 and 1) to Xcode build setting variables ($(MARKETING_VERSION) and $(CURRENT_PROJECT_VERSION)).

Changes

TopShelf Bundle Version Parameterization

Layer / File(s) Summary
Info.plist version variables
iosApp/TopShelf/Info.plist
Replaces hardcoded 0.1.0 and 1 with $(MARKETING_VERSION) and $(CURRENT_PROJECT_VERSION) build setting references.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately reflects the Top Shelf versioning fix for TestFlight and matches the main plist change.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/topshelf-bundle-version

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@zZebrahz
zZebrahz merged commit a075154 into main Jun 30, 2026
1 check passed
@zZebrahz
zZebrahz deleted the fix/topshelf-bundle-version branch June 30, 2026 14:43
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