diff --git a/Telegram/WatchApp/project.yml b/Telegram/WatchApp/project.yml index ebc0099a2f..44a381228f 100644 --- a/Telegram/WatchApp/project.yml +++ b/Telegram/WatchApp/project.yml @@ -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 diff --git a/Telegram/WatchApp/tgwatch.xcodeproj/project.pbxproj b/Telegram/WatchApp/tgwatch.xcodeproj/project.pbxproj index dd7e37625c..ab950ef6f3 100644 --- a/Telegram/WatchApp/tgwatch.xcodeproj/project.pbxproj +++ b/Telegram/WatchApp/tgwatch.xcodeproj/project.pbxproj @@ -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; };