From a4ff51d216c9c9c4bf5e7577ffa717b1abfdf1eb Mon Sep 17 00:00:00 2001 From: wusumac <736139669@qq.com> Date: Fri, 6 Nov 2026 21:04:11 +0800 Subject: [PATCH] chore(ios): use personal team and bundle identifiers for local builds - set team X75CUV458P - app com.wusu.hapi; widget/NSE/tests use the same prefix - App Group group.com.wusu.hapi and Keychain group com.wusu.hapi.push via [HAPI](https://hapi.run) Co-Authored-By: HAPI Co-Authored-By: Claude Code --- ios/Hapi.xcodeproj/project.pbxproj | 28 +++++++++---------- ios/Hapi/Hapi-macOS.entitlements | 2 +- ios/Hapi/Hapi.entitlements | 4 +-- ...HapiNotificationService-macOS.entitlements | 2 +- .../HapiNotificationService.entitlements | 4 +-- ios/HapiWidgets/HapiWidgets.entitlements | 4 +-- .../HapiProtocol/Widget/WidgetSnapshot.swift | 2 +- 7 files changed, 23 insertions(+), 23 deletions(-) diff --git a/ios/Hapi.xcodeproj/project.pbxproj b/ios/Hapi.xcodeproj/project.pbxproj index 9b6615d1..13abd232 100644 --- a/ios/Hapi.xcodeproj/project.pbxproj +++ b/ios/Hapi.xcodeproj/project.pbxproj @@ -483,7 +483,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO; - DEVELOPMENT_TEAM = XJB862F92W; + DEVELOPMENT_TEAM = X75CUV458P; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Hapi/Info.plist; @@ -499,7 +499,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 0.34.1; - PRODUCT_BUNDLE_IDENTIFIER = run.hapi.app; + PRODUCT_BUNDLE_IDENTIFIER = com.wusu.hapi; PRODUCT_NAME = "$(TARGET_NAME)"; SUPPORTS_MACCATALYST = YES; SWIFT_EMIT_LOC_STRINGS = NO; @@ -518,7 +518,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO; - DEVELOPMENT_TEAM = XJB862F92W; + DEVELOPMENT_TEAM = X75CUV458P; ENABLE_PREVIEWS = YES; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = Hapi/Info.plist; @@ -534,7 +534,7 @@ "@executable_path/Frameworks", ); MARKETING_VERSION = 0.34.1; - PRODUCT_BUNDLE_IDENTIFIER = run.hapi.app; + PRODUCT_BUNDLE_IDENTIFIER = com.wusu.hapi; PRODUCT_NAME = "$(TARGET_NAME)"; SUPPORTS_MACCATALYST = YES; SWIFT_EMIT_LOC_STRINGS = NO; @@ -551,7 +551,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO; - DEVELOPMENT_TEAM = XJB862F92W; + DEVELOPMENT_TEAM = X75CUV458P; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = HapiNotificationService/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = HapiNotificationService; @@ -562,7 +562,7 @@ "@executable_path/../../Frameworks", ); MARKETING_VERSION = 0.34.1; - PRODUCT_BUNDLE_IDENTIFIER = run.hapi.app.HapiNotificationService; + PRODUCT_BUNDLE_IDENTIFIER = com.wusu.hapi.HapiNotificationService; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SUPPORTS_MACCATALYST = YES; @@ -580,7 +580,7 @@ CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO; - DEVELOPMENT_TEAM = XJB862F92W; + DEVELOPMENT_TEAM = X75CUV458P; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = HapiNotificationService/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = HapiNotificationService; @@ -591,7 +591,7 @@ "@executable_path/../../Frameworks", ); MARKETING_VERSION = 0.34.1; - PRODUCT_BUNDLE_IDENTIFIER = run.hapi.app.HapiNotificationService; + PRODUCT_BUNDLE_IDENTIFIER = com.wusu.hapi.HapiNotificationService; PRODUCT_NAME = "$(TARGET_NAME)"; SKIP_INSTALL = YES; SUPPORTS_MACCATALYST = YES; @@ -608,7 +608,7 @@ CODE_SIGN_ENTITLEMENTS = HapiWidgets/HapiWidgets.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = XJB862F92W; + DEVELOPMENT_TEAM = X75CUV458P; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = HapiWidgets/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = HAPI; @@ -619,7 +619,7 @@ "@executable_path/../../Frameworks", ); MARKETING_VERSION = 0.34.1; - PRODUCT_BUNDLE_IDENTIFIER = run.hapi.app.HapiWidgets; + PRODUCT_BUNDLE_IDENTIFIER = com.wusu.hapi.HapiWidgets; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; SKIP_INSTALL = YES; @@ -638,7 +638,7 @@ CODE_SIGN_ENTITLEMENTS = HapiWidgets/HapiWidgets.entitlements; CODE_SIGN_STYLE = Automatic; CURRENT_PROJECT_VERSION = 1; - DEVELOPMENT_TEAM = XJB862F92W; + DEVELOPMENT_TEAM = X75CUV458P; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = HapiWidgets/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = HAPI; @@ -649,7 +649,7 @@ "@executable_path/../../Frameworks", ); MARKETING_VERSION = 0.34.1; - PRODUCT_BUNDLE_IDENTIFIER = run.hapi.app.HapiWidgets; + PRODUCT_BUNDLE_IDENTIFIER = com.wusu.hapi.HapiWidgets; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; SKIP_INSTALL = YES; @@ -668,7 +668,7 @@ DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 17.0; - PRODUCT_BUNDLE_IDENTIFIER = run.hapi.companion.tests; + PRODUCT_BUNDLE_IDENTIFIER = com.wusu.hapi.tests; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; @@ -686,7 +686,7 @@ DERIVE_MACCATALYST_PRODUCT_BUNDLE_IDENTIFIER = NO; GENERATE_INFOPLIST_FILE = YES; IPHONEOS_DEPLOYMENT_TARGET = 17.0; - PRODUCT_BUNDLE_IDENTIFIER = run.hapi.companion.tests; + PRODUCT_BUNDLE_IDENTIFIER = com.wusu.hapi.tests; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; SUPPORTED_PLATFORMS = "iphoneos iphonesimulator macosx"; diff --git a/ios/Hapi/Hapi-macOS.entitlements b/ios/Hapi/Hapi-macOS.entitlements index a1c2c4c0..e9dc7cee 100644 --- a/ios/Hapi/Hapi-macOS.entitlements +++ b/ios/Hapi/Hapi-macOS.entitlements @@ -14,7 +14,7 @@ keychain-access-groups - $(AppIdentifierPrefix)run.hapi.companion.push + $(AppIdentifierPrefix)com.wusu.hapi.push diff --git a/ios/Hapi/Hapi.entitlements b/ios/Hapi/Hapi.entitlements index 53fb0f5b..9a13f46b 100644 --- a/ios/Hapi/Hapi.entitlements +++ b/ios/Hapi/Hapi.entitlements @@ -6,11 +6,11 @@ development com.apple.security.application-groups - group.run.hapi.app + group.com.wusu.hapi keychain-access-groups - $(AppIdentifierPrefix)run.hapi.companion.push + $(AppIdentifierPrefix)com.wusu.hapi.push diff --git a/ios/HapiNotificationService/HapiNotificationService-macOS.entitlements b/ios/HapiNotificationService/HapiNotificationService-macOS.entitlements index 6e907b83..15532f1c 100644 --- a/ios/HapiNotificationService/HapiNotificationService-macOS.entitlements +++ b/ios/HapiNotificationService/HapiNotificationService-macOS.entitlements @@ -8,7 +8,7 @@ keychain-access-groups - $(AppIdentifierPrefix)run.hapi.companion.push + $(AppIdentifierPrefix)com.wusu.hapi.push diff --git a/ios/HapiNotificationService/HapiNotificationService.entitlements b/ios/HapiNotificationService/HapiNotificationService.entitlements index 4c9eb60a..2f1b7b79 100644 --- a/ios/HapiNotificationService/HapiNotificationService.entitlements +++ b/ios/HapiNotificationService/HapiNotificationService.entitlements @@ -4,11 +4,11 @@ com.apple.security.application-groups - group.run.hapi.app + group.com.wusu.hapi keychain-access-groups - $(AppIdentifierPrefix)run.hapi.companion.push + $(AppIdentifierPrefix)com.wusu.hapi.push diff --git a/ios/HapiWidgets/HapiWidgets.entitlements b/ios/HapiWidgets/HapiWidgets.entitlements index 4c9eb60a..2f1b7b79 100644 --- a/ios/HapiWidgets/HapiWidgets.entitlements +++ b/ios/HapiWidgets/HapiWidgets.entitlements @@ -4,11 +4,11 @@ com.apple.security.application-groups - group.run.hapi.app + group.com.wusu.hapi keychain-access-groups - $(AppIdentifierPrefix)run.hapi.companion.push + $(AppIdentifierPrefix)com.wusu.hapi.push diff --git a/ios/Packages/HapiKit/Sources/HapiProtocol/Widget/WidgetSnapshot.swift b/ios/Packages/HapiKit/Sources/HapiProtocol/Widget/WidgetSnapshot.swift index 74a0088f..3111e645 100644 --- a/ios/Packages/HapiKit/Sources/HapiProtocol/Widget/WidgetSnapshot.swift +++ b/ios/Packages/HapiKit/Sources/HapiProtocol/Widget/WidgetSnapshot.swift @@ -185,7 +185,7 @@ public enum WidgetSnapshotBuilder { /// Shared App Group file store. The widget target and the app/NSE use the /// same path; tests inject a temporary directory. public enum WidgetSnapshotStore { - public static let appGroupIdentifier = "group.run.hapi.app" + public static let appGroupIdentifier = "group.com.wusu.hapi" public static let fileName = "widget-snapshot.json" public static let widgetKind = "HapiHomeWidget"