From 604eec33225790f60fbfdfbfe6164b361f3d20ad Mon Sep 17 00:00:00 2001 From: jjbrunton Date: Mon, 31 Aug 2026 12:07:13 +0100 Subject: [PATCH] fix(ios): restore LiveDrawWidget identity after apple-targets 5 regeneration The SDK 56 prebuild derived the widget bundle id from its folder name (com.sauci.app.widget) and pointed CODE_SIGN_ENTITLEMENTS at the ignored ios/.targets cache. Restore the shipped com.sauci.app.LiveDrawWidget identity, the tracked entitlements file, and pin bundleIdentifier in the target config so future prebuilds keep it. Co-Authored-By: Claude Fable 5 --- apps/mobile/ios/Sauci.xcodeproj/project.pbxproj | 16 ++++++++-------- apps/mobile/targets/widget/Info.plist | 2 +- apps/mobile/targets/widget/expo-target.config.js | 3 +++ .../mobile/targets/widget/generated.entitlements | 10 ++++++++++ 4 files changed, 22 insertions(+), 9 deletions(-) create mode 100644 apps/mobile/targets/widget/generated.entitlements diff --git a/apps/mobile/ios/Sauci.xcodeproj/project.pbxproj b/apps/mobile/ios/Sauci.xcodeproj/project.pbxproj index a02934d..6479dbb 100644 --- a/apps/mobile/ios/Sauci.xcodeproj/project.pbxproj +++ b/apps/mobile/ios/Sauci.xcodeproj/project.pbxproj @@ -618,7 +618,7 @@ "@executable_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 13.4; - MARKETING_VERSION = 1.0.7; + MARKETING_VERSION = 1.0.8; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -651,7 +651,7 @@ "@executable_path/Frameworks", ); MACOSX_DEPLOYMENT_TARGET = 13.4; - MARKETING_VERSION = 1.0.7; + MARKETING_VERSION = 1.0.8; OTHER_LDFLAGS = ( "$(inherited)", "-ObjC", @@ -841,7 +841,7 @@ CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CODE_SIGN_ENTITLEMENTS = .targets/LiveDrawWidget/generated.entitlements; + CODE_SIGN_ENTITLEMENTS = ../targets/widget/generated.entitlements; CODE_SIGN_STYLE = Automatic; COPY_PHASE_STRIP = NO; CURRENT_PROJECT_VERSION = 46; @@ -858,10 +858,10 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.7; + MARKETING_VERSION = 1.0.8; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_RELEASE"; - PRODUCT_BUNDLE_IDENTIFIER = com.sauci.app.widget; + PRODUCT_BUNDLE_IDENTIFIER = com.sauci.app.LiveDrawWidget; PRODUCT_NAME = "$(TARGET_NAME)"; REGISTER_APP_GROUPS = YES; SKIP_INSTALL = YES; @@ -883,7 +883,7 @@ CLANG_WARN_DOCUMENTATION_COMMENTS = YES; CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CODE_SIGN_ENTITLEMENTS = .targets/LiveDrawWidget/generated.entitlements; + CODE_SIGN_ENTITLEMENTS = ../targets/widget/generated.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 46; DEBUG_INFORMATION_FORMAT = dwarf; @@ -899,11 +899,11 @@ "@executable_path/Frameworks", "@executable_path/../../Frameworks", ); - MARKETING_VERSION = 1.0.7; + MARKETING_VERSION = 1.0.8; MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; MTL_FAST_MATH = YES; OTHER_SWIFT_FLAGS = "$(inherited) -D EXPO_CONFIGURATION_DEBUG"; - PRODUCT_BUNDLE_IDENTIFIER = com.sauci.app.widget; + PRODUCT_BUNDLE_IDENTIFIER = com.sauci.app.LiveDrawWidget; PRODUCT_NAME = "$(TARGET_NAME)"; REGISTER_APP_GROUPS = YES; SKIP_INSTALL = YES; diff --git a/apps/mobile/targets/widget/Info.plist b/apps/mobile/targets/widget/Info.plist index a704001..235a8b6 100644 --- a/apps/mobile/targets/widget/Info.plist +++ b/apps/mobile/targets/widget/Info.plist @@ -10,6 +10,6 @@ CFBundleVersion 46 CFBundleShortVersionString - 1.0.7 + 1.0.8 \ No newline at end of file diff --git a/apps/mobile/targets/widget/expo-target.config.js b/apps/mobile/targets/widget/expo-target.config.js index f2feb6a..8ed3ecf 100644 --- a/apps/mobile/targets/widget/expo-target.config.js +++ b/apps/mobile/targets/widget/expo-target.config.js @@ -2,6 +2,9 @@ module.exports = (config) => ({ type: "widget", name: "LiveDrawWidget", + // apple-targets 5.x derives the bundle identifier from the folder name + // ("widget") by default; the store identity must stay LiveDrawWidget. + bundleIdentifier: "com.sauci.app.LiveDrawWidget", deploymentTarget: "16.0", entitlements: { "com.apple.security.application-groups": diff --git a/apps/mobile/targets/widget/generated.entitlements b/apps/mobile/targets/widget/generated.entitlements new file mode 100644 index 0000000..2bfffaa --- /dev/null +++ b/apps/mobile/targets/widget/generated.entitlements @@ -0,0 +1,10 @@ + + + + + com.apple.security.application-groups + + group.com.sauci.app + + + \ No newline at end of file