Repository navigation
fix(tvos): match Top Shelf bundle version to host app for TestFlight - #32
Merged
Merged
Conversation
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).
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📝 WalkthroughWalkthrough
ChangesTopShelf Bundle Version Parameterization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
The embedded SiloTVTopShelf extension hard-coded its version keys in
iosApp/TopShelf/Info.plist:The tvOS release lane (added in #31) injects
MARKETING_VERSIONandCURRENT_PROJECT_VERSIONas globalxcargsoverrides. Those only reach a target's bundle if its plist references the variable. The host tvOS app does (tvOS-Info.plistuses$(MARKETING_VERSION)/$(CURRENT_PROJECT_VERSION)), so it gets e.g.1.4.0 (5). The Top Shelf.appexignored them and shipped0.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:
SiloTVTopShelfalready definesMARKETING_VERSION: "0.1.0"andCURRENT_PROJECT_VERSION: 1inproject.yml, so local/default builds keep0.1.0 (1)exactly as before; CI's global overrides now apply to the host app and the extension in lockstep.Test
0.1.0 (1)(unchanged).MARKETING_VERSIONand thelatest_testflight_build_number + 1, matching the host SiloTV app → no ASC mismatch.Summary by CodeRabbit