deonmenezes/mobile-app-skill / skills/app-store-release
app-store-release
UnverifiedShip an iOS app update or a first release to the App Store end to end, the way it is actually done across many real releases. Bumps the version, builds and signs on a Mac over SSH (or on a GitHub-hosted Mac when yours is asleep), uploads, waits for processing, submits for App Review, watches the review, handles rejections and hotfixes, and checks the app is really on sale afterwards. Includes its own scripts for Windows, Linux and macOS (what has and has not been exercised is listed in the skill), and a one-time setup interview so later releases need no questions. Use when the user says "ship it", "release an update", "push a new version", "submit to the App Store", "upload to TestFlight", "resubmit", "replace the build in review", "my app got rejected", "hotfix", "why is my approved app not on the store", or "set up release automation".
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 16.9 KB |
| references/build-hosts.md | markdown | 8.8 KB |
| references/first-release.md | markdown | 6.0 KB |
| references/gotchas.md | markdown | 11.7 KB |
| references/rejections.md | markdown | 4.9 KB |
| references/setup.md | markdown | 6.5 KB |
| scripts/asc_api.py | script | 7.7 KB |
| scripts/asc_availability.py | script | 3.3 KB |
| scripts/asc_status.py | script | 9.7 KB |
| scripts/asc_submit.py | script | 28.3 KB |
| scripts/fetch_profiles.py | script | 4.1 KB |
| scripts/mac_release.shexecutable | script | 12.6 KB |
| scripts/manual_sign.py | script | 3.0 KB |
| scripts/release_config.py | script | 12.1 KB |
| scripts/upload_ipa.py | script | 5.7 KB |
| templates/ios-release.yml | config | 4.2 KB |
scripts/manual_sign.py
View on GitHub#!/usr/bin/env python3
"""Switch the Release configuration of each app target to manual App Store signing, one profile per bundle id.
python3 manual_sign.py App.xcodeproj/project.pbxproj "com.example.app=Example AppStore;com.example.app.widget=Example Widget AppStore"
python3 manual_sign.py App.xcodeproj/project.pbxproj "..." --check report only, change nothing
Why: automatic signing needs an unlocked login keychain and a development certificate, which an SSH session or a CI
runner does not have. Setting the profile on the xcodebuild command line instead would apply it to every target,
including extensions and packages, and break the build. Only stdlib, so it runs with the python3 that ships with Xcode.
Exit codes: 0 every mapped bundle id was found, 2 one was not (wrong id, or the id is built from a variable).
"""
import re
import sys
from pathlib import Path
BLOCK = re.compile(r"\w+ (?:/\* [^*]+ \*/ )?= \{\s*isa = XCBuildConfiguration;.*?\n\t\t\};", re.S)
SIGNING = re.compile(r"\n\s*(?:CODE_SIGN_STYLE|PROVISIONING_PROFILE_SPECIFIER|PROVISIONING_PROFILE|\"?CODE_SIGN_IDENTITY(?:\[sdk=[^\]]*\])?\"?) = [^;]*;")
def main(argv):
check = "--check" in argv
args = [a for a in argv if not a.startswith("--")]
if len(args) != 2:
sys.exit(__doc__)
path = Path(args[0])
profiles = dict(pair.split("=", 1) for pair in args[1].split(";") if "=" in pair)
text = path.read_bytes().decode("utf-8")
seen, unmapped = set(), set()
def fix(m):
block = m.group(0)
if "name = Release;" not in block:
return block
bid = re.search(r"PRODUCT_BUNDLE_IDENTIFIER = \"?([^\";]+)\"?;", block)
if not bid:
return block # a project-level configuration, not a target's
if bid.group(1) not in profiles:
unmapped.add(bid.group(1))
return block
seen.add(bid.group(1))
indent = re.search(r"buildSettings = \{\n(\s*)", block)
pad = indent.group(1) if indent else "\t\t\t\t"
block = SIGNING.sub("", block)
# "iPhone Distribution" matches both the older "iPhone Distribution" and the newer "Apple Distribution" certificates.
settings = (f'buildSettings = {{\n{pad}CODE_SIGN_STYLE = Manual;\n{pad}CODE_SIGN_IDENTITY = "iPhone Distribution";'
f'\n{pad}PROVISIONING_PROFILE_SPECIFIER = "{profiles[bid.group(1)]}";')
return block.replace("buildSettings = {", settings, 1)
new = BLOCK.sub(fix, text)
for b in sorted(seen):
print(f"manual signing: {b} -> {profiles[b]}")
# Test targets and the like are fine to leave; an app extension here would fail the archive.
for b in sorted(unmapped):
print(f"left alone (no profile mapped): {b}")
missing = sorted(set(profiles) - seen)
for b in missing:
print(f"NOT FOUND in a Release configuration: {b}")
if not check and new != text:
path.write_bytes(new.encode("utf-8"))
sys.exit(2 if missing else 0)
if __name__ == "__main__":
main(sys.argv[1:])
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis. | Stars: 471k | Updated | Claude CodeCodex | Verified | Install |
| diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness. | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependencies | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |