feat(build): --bundle-id-suffix flag on build_patched_ipa.sh#16
Open
tkgstrator wants to merge 4 commits into
Open
feat(build): --bundle-id-suffix flag on build_patched_ipa.sh#16tkgstrator wants to merge 4 commits into
tkgstrator wants to merge 4 commits into
Conversation
release: guard master against non-develop sources
chore: release v0.1.1
chore: release v0.1.2
Add an optional --bundle-id-suffix SUFFIX flag that rewrites the Payload/*.app/Info.plist CFBundleIdentifier from ORIG to ORIG.<SUFFIX> before repacking, so a patched IPA can install side-by-side with the original App Store / Sideloadly copy of the same app instead of overwriting it. Empty (default) leaves the bundle id alone, keeping the existing "overwrite" flow byte-for-byte. When set, the rewrite is idempotent — re-running with the same suffix on an already-suffixed CFBundleIdentifier skips the rewrite instead of stacking ".<SUFFIX>.<SUFFIX>". Reads CFBundleIdentifier via plistlib (through the same interpreter the rest of the pipeline uses) and writes it via the existing patch_plist tool with --set, so binary/XML plist parity and existing keys stay untouched. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This was referenced Jul 1, 2026
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.
Summary
--bundle-id-suffix SUFFIXflag tobuild_patched_ipa.sh..<SUFFIX>toPayload/*.app/Info.plistCFBundleIdentifierbefore repacking, so the patched IPA can install side-by-side with the original App Store / Sideloadly copy of the same app.Idempotency
Re-running with the same suffix on an already-suffixed
CFBundleIdentifierskips the rewrite instead of stacking.<SUFFIX>.<SUFFIX>.Implementation
CFBundleIdentifierviaplistlib(through the same Python interpreter the rest of the pipeline uses).tools.patch_plistmodule with--set CFBundleIdentifier=<new>, so binary/XML plist parity and existing keys stay untouched.Test plan
build_patched_ipa.shwithout--bundle-id-suffix→CFBundleIdentifierunchanged (verified viaplistlibon the output IPA).build_patched_ipa.sh --bundle-id-suffix chinlan→CFBundleIdentifier = com.acme.app.chinlan.🤖 Generated with Claude Code