VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.
Python aiaudiobookcudadubbingelevenlabs-alternativehuggingfacelocal-firstmlxomnivoice-studiospeech-to-texttext-to-speechtranscriptiontranslatettsvoice-aivoice-cloningvoice-generationvoicestudioworkflow
fix(ios): pass App Store Connect upload validation
velixio2df5f10f2d4d
diff --git a/.github/workflows/ios-testflight.yml b/.github/workflows/ios-testflight.ymlindex 6e5b3529f..db5e410d0 100644--- a/.github/workflows/ios-testflight.yml+++ b/.github/workflows/ios-testflight.yml@@ -17,7 +17,8 @@ concurrency:jobs:testflight:if: github.ref == 'refs/heads/main'- runs-on: macos-15+ # App Store Connect only accepts builds from the current iOS SDK (Xcode 26+).+ runs-on: macos-26timeout-minutes: 60# Holds the App Store Connect secrets; restrict it to `main` in repository settings.environment: app-store-connectdiff --git a/.github/workflows/mobile.yml b/.github/workflows/mobile.ymlindex 7d1040aae..101104588 100644--- a/.github/workflows/mobile.yml+++ b/.github/workflows/mobile.yml@@ -74,7 +74,8 @@ jobs:retention-days: 7ios:- runs-on: macos-15+ # Same SDK as the TestFlight upload, so App Store toolchain breaks show up here first.+ runs-on: macos-26timeout-minutes: 50steps:- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0diff --git a/docs/mobile.md b/docs/mobile.mdindex 4f4edeba0..423963d23 100644--- a/docs/mobile.md+++ b/docs/mobile.md@@ -95,6 +95,11 @@ submits the app for App Store review. One-time setup in the Apple Developer team`APP_STORE_CONNECT_ISSUER_ID` and `APP_STORE_CONNECT_API_KEY` (the full`.p8` text). `APPLE_TEAM_ID` is shared with macOS notarization.+The workflow builds on the `macos-26` runner because App Store Connect accepts+only the current iOS SDK; the `mobile` workflow's iOS job uses the same runner.+The app icon is `Resources/Assets.xcassets/AppIcon.appiconset/AppIcon.png`, a+1024×1024 opaque PNG rendered from `mobile/ios/VoiceStudio/AppIcon.svg`.+The version is the root `package.json` version without any `-beta.N` suffix(App Store Connect accepts only `X.Y.Z`); the build number is the workflow runnumber and attempt, so every upload is new.diff --git a/mobile/ios/VoiceStudio/AppIcon.svg b/mobile/ios/VoiceStudio/AppIcon.svgnew file mode 100644index 000000000..85591b461--- /dev/null+++ b/mobile/ios/VoiceStudio/AppIcon.svg@@ -0,0 +1,23 @@+<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 64 64" role="img" aria-labelledby="title description">+ <title id="title">VoiceStudio</title>+ <desc id="description">A warm pink speech waveform with a small spark on a dark rounded tile.</desc>+ <defs>+ <linearGradient id="tile" x1="7" y1="4" x2="58" y2="62" gradientUnits="userSpaceOnUse">+ <stop stop-color="#211B2B"/>+ <stop offset="1" stop-color="#120F18"/>+ </linearGradient>+ <radialGradient id="warmth" cx="0" cy="0" r="1" gradientTransform="translate(49 13) rotate(132) scale(42)" gradientUnits="userSpaceOnUse">+ <stop stop-color="#6A2D4C" stop-opacity="0.44"/>+ <stop offset="1" stop-color="#6A2D4C" stop-opacity="0"/>+ </radialGradient>+ <linearGradient id="voice" x1="7" y1="18" x2="59" y2="46" gradientUnits="userSpaceOnUse">+ <stop stop-color="#FFD0DB"/>+ <stop offset="0.5" stop-color="#F47FA3"/>+ <stop offset="1" stop-color="#F7AE73"/>+ </linearGradient>+ </defs>+ <rect width="64" height="64" fill="url(#tile)"/>+ <rect width="64" height="64" fill="url(#warmth)"/>+ <path d="M6 34c4 0 5-7 9-7 5 0 4 14 9 14 5 0 4-23 9-23s4 28 9 28 4-21 9-21c4 0 5 9 8 9" fill="none" stroke="url(#voice)" stroke-width="5.5" stroke-linecap="round" stroke-linejoin="round"/>+ <path d="M50 9c.7 4.3 3.7 7.3 8 8-4.3.7-7.3 3.7-8 8-.7-4.3-3.7-7.3-8-8 4.3-.7 7.3-3.7 8-8Z" fill="#FFE5B5"/>+</svg>diff --git a/mobile/ios/VoiceStudio/Info.plist b/mobile/ios/VoiceStudio/Info.plistindex 4629006e5..016d095ac 100644--- a/mobile/ios/VoiceStudio/Info.plist+++ b/mobile/ios/VoiceStudio/Info.plist@@ -2,6 +2,7 @@<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"><plist version="1.0"><dict><key>CFBundleDisplayName</key><string>VoiceStudio</string>+<key>CFBundleIconName</key><string>AppIcon</string><key>CFBundleName</key><string>$(PRODUCT_NAME)</string><key>CFBundleIdentifier</key><string>$(PRODUCT_BUNDLE_IDENTIFIER)</string><key>CFBundleExecutable</key><string>$(EXECUTABLE_NAME)</string>@@ -11,6 +12,7 @@<key>UIApplicationSupportsIndirectInputEvents</key><true/><key>UILaunchScreen</key><dict/><key>UISupportedInterfaceOrientations</key><array><string>UIInterfaceOrientationPortrait</string><string>UIInterfaceOrientationLandscapeLeft</string><string>UIInterfaceOrientationLandscapeRight</string></array>+<key>UISupportedInterfaceOrientations~ipad</key><array><string>UIInterfaceOrientationPortrait</string><string>UIInterfaceOrientationPortraitUpsideDown</string><string>UIInterfaceOrientationLandscapeLeft</string><string>UIInterfaceOrientationLandscapeRight</string></array><key>UIAppFonts</key><array><string>InterVariable.ttf</string></array><key>UIBackgroundModes</key><array><string>processing</string></array><key>BGTaskSchedulerPermittedIdentifiers</key><array><string>com.voicestudio.mobile.dub-monitor</string></array>diff --git a/mobile/ios/VoiceStudio/Resources/Assets.xcassets/AppIcon.appiconset/AppIcon.png b/mobile/ios/VoiceStudio/Resources/Assets.xcassets/AppIcon.appiconset/AppIcon.pngnew file mode 100644index 000000000..486a249c7Binary files /dev/null and b/mobile/ios/VoiceStudio/Resources/Assets.xcassets/AppIcon.appiconset/AppIcon.png differdiff --git a/mobile/ios/VoiceStudio/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json b/mobile/ios/VoiceStudio/Resources/Assets.xcassets/AppIcon.appiconset/Contents.jsonnew file mode 100644index 000000000..704cd420a--- /dev/null+++ b/mobile/ios/VoiceStudio/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json@@ -0,0 +1,6 @@+{+ "images" : [+ { "filename" : "AppIcon.png", "idiom" : "universal", "platform" : "ios", "size" : "1024x1024" }+ ],+ "info" : { "author" : "xcode", "version" : 1 }+}diff --git a/mobile/ios/VoiceStudio/Resources/Assets.xcassets/Contents.json b/mobile/ios/VoiceStudio/Resources/Assets.xcassets/Contents.jsonnew file mode 100644index 000000000..d8b757af0--- /dev/null+++ b/mobile/ios/VoiceStudio/Resources/Assets.xcassets/Contents.json@@ -0,0 +1,3 @@+{+ "info" : { "author" : "xcode", "version" : 1 }+}diff --git a/mobile/ios/VoiceStudio/project.yml b/mobile/ios/VoiceStudio/project.ymlindex dadbcf6cc..f749d9c92 100644--- a/mobile/ios/VoiceStudio/project.yml+++ b/mobile/ios/VoiceStudio/project.yml@@ -27,6 +27,7 @@ targets:settings:base:PRODUCT_BUNDLE_IDENTIFIER: sh.voicestudio.mobile+ ASSETCATALOG_COMPILER_APPICON_NAME: AppIconGENERATE_INFOPLIST_FILE: 'NO'INFOPLIST_FILE: $(DERIVED_FILE_DIR)/VoiceStudio-Info.plistdependencies:diff --git a/tests/test_ios_testflight.py b/tests/test_ios_testflight.pyindex 48cb19575..b677b9140 100644--- a/tests/test_ios_testflight.py+++ b/tests/test_ios_testflight.py@@ -73,3 +73,34 @@ def test_archive_check_matches_automatic_signing():assert "Authority=Apple Distribution" not in verify["run"]assert 'TeamIdentifier=$TEAM_ID' in verify["run"]assert verify["env"]["TEAM_ID"] == "${{ secrets.APPLE_TEAM_ID }}"+++IOS = ROOT / "mobile" / "ios" / "VoiceStudio"+++def test_app_store_validation_requirements():+ # Each check mirrors an App Store Connect upload rejection (run 39956020986).+ assert load_workflow()["jobs"]["testflight"]["runs-on"] == "macos-26"+ info = plistlib.loads((IOS / "Info.plist").read_bytes())+ assert info["CFBundleIconName"] == "AppIcon"+ assert set(info["UISupportedInterfaceOrientations~ipad"]) == {+ "UIInterfaceOrientationPortrait",+ "UIInterfaceOrientationPortraitUpsideDown",+ "UIInterfaceOrientationLandscapeLeft",+ "UIInterfaceOrientationLandscapeRight",+ }+ project = yaml.safe_load((IOS / "project.yml").read_text())+ assert project["targets"]["VoiceStudio"]["settings"]["base"]["ASSETCATALOG_COMPILER_APPICON_NAME"] == "AppIcon"+++def test_app_icon_is_an_opaque_1024_png():+ png = (IOS / "Resources/Assets.xcassets/AppIcon.appiconset/AppIcon.png").read_bytes()+ assert png[:8] == b"\x89PNG\r\n\x1a\n"+ width, height = int.from_bytes(png[16:20], "big"), int.from_bytes(png[20:24], "big")+ assert (width, height) == (1024, 1024)+ assert png[25] == 2, "App Store icons must be RGB without an alpha channel"+++def test_mobile_ci_builds_ios_with_the_upload_toolchain():+ mobile = yaml.load((ROOT / ".github/workflows/mobile.yml").read_text(), Loader=yaml.BaseLoader)+ assert mobile["jobs"]["ios"]["runs-on"] == load_workflow()["jobs"]["testflight"]["runs-on"]