Strip watch app

This commit is contained in:
isaac 2026-05-28 02:13:30 +02:00
parent c3ab3ff218
commit 0be476ff79
2 changed files with 14 additions and 0 deletions

View file

@ -79,6 +79,17 @@ targets:
CODE_SIGNING_ALLOWED: "NO"
CODE_SIGNING_REQUIRED: "NO"
CODE_SIGN_IDENTITY: ""
configs:
Release:
# Bazel consumes a plain `xcodebuild build`, so DEPLOYMENT_POSTPROCESSING
# stays NO and the default strip phase never runs — the executable ships
# with its full ~1M-symbol table, doubling each thinned slice to ~100MB
# and tripping App Store's 75MB watchOS limit (error 90389). Force the
# strip during build. Scoped to this target only: a project-wide setting
# also tries to strip the SPM static libs, which errors on COgg.o.
DEPLOYMENT_POSTPROCESSING: "YES"
STRIP_INSTALLED_PRODUCT: "YES"
STRIP_STYLE: "all"
dependencies:
- package: TDLibKit
- package: QRCodeGenerator

View file

@ -641,6 +641,7 @@
CODE_SIGNING_ALLOWED = NO;
CODE_SIGNING_REQUIRED = NO;
CODE_SIGN_IDENTITY = "";
DEPLOYMENT_POSTPROCESSING = YES;
DEVELOPMENT_TEAM = C67CF9S4VU;
GENERATE_INFOPLIST_FILE = NO;
INFOPLIST_FILE = "tgwatch Watch App/Info.plist";
@ -648,6 +649,8 @@
PRODUCT_BUNDLE_IDENTIFIER = ph.telegra.Telegraph.watchkitapp;
SDKROOT = watchos;
SKIP_INSTALL = YES;
STRIP_INSTALLED_PRODUCT = YES;
STRIP_STYLE = all;
TARGETED_DEVICE_FAMILY = 4;
WATCHOS_DEPLOYMENT_TARGET = 26.0;
};