Fix experimental keep-alive, wire it into "Other" tab, add Dynamic Island Live Activity

Keep-alive for any app:
- On TXM devices (iOS 26+), keep-alive now falls back to the bundled universal
  JIT script for apps with no assigned/name-matched script. Previously only known
  apps got a script callback, so a generic app's JIT brk syscalls went unserviced
  and the app hung / was killed in the background — the reason keep-alive "didn't
  work for any app". The fallback is read straight from the app bundle so the
  current, cancellation-aware script is always used.
- Stopping a hold now reliably stops the script loop: the hold and its JIT script
  share one cancellation token, exposed to JS as should_continue() and honored by
  send_command(). universal.js checks should_continue() each iteration. On stop we
  interrupt + detach so the held app keeps running instead of being torn down. The
  cancellation flag is only read from the script's own thread, so there is no
  unsafe concurrent access to the (non-thread-safe) debug proxy.

Banner from the "Other" tab:
- Selecting an app in the "Other" (launch) tab while keep-alive is enabled now
  holds it in the background and shows the banner, instead of silently launching
  without a debugger. The launch rows show a green "Hold" action and a footer note
  in this mode.

Dynamic Island / Live Activity:
- New StikDebugWidgets widget-extension target hosting a keep-alive Live Activity,
  with compact/expanded/minimal Dynamic Island presentations and a Lock Screen
  view. Shared KeepAliveActivityAttributes lives in a StikDebugShared group used by
  both the app and the extension.
- BackgroundAliveManager starts the activity when a hold begins and ends it when
  the hold stops; stale activities from a previous run are cleared at launch.
- Added NSSupportsLiveActivities to the app Info.plist.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EpCxAimrBo9RA8v6BxSEXT
This commit is contained in:
Claude 2026-07-15 10:47:40 +00:00
parent 5c3c37a1e4
commit 23e8052c7b
No known key found for this signature in database
16 changed files with 579 additions and 29 deletions

View file

@ -9,6 +9,7 @@
/* Begin PBXBuildFile section */
68D569BE2E1B415700A5BA36 /* CodeEditorView in Frameworks */ = {isa = PBXBuildFile; productRef = 68D569BD2E1B415700A5BA36 /* CodeEditorView */; };
68D569C02E1B415700A5BA36 /* LanguageSupport in Frameworks */ = {isa = PBXBuildFile; productRef = 68D569BF2E1B415700A5BA36 /* LanguageSupport */; };
F00DCAFE000000000000E00B /* StikDebugWidgets.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = F00DCAFE000000000000E002 /* StikDebugWidgets.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
/* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
@ -26,6 +27,13 @@
remoteGlobalIDString = DC6F1D362D94EADD0071B2B6;
remoteInfo = StikDebug;
};
F00DCAFE000000000000E00D /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = DC6F1D2F2D94EADD0071B2B6 /* Project object */;
proxyType = 1;
remoteGlobalIDString = F00DCAFE000000000000E001;
remoteInfo = StikDebugWidgets;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */
@ -35,6 +43,7 @@
dstPath = "";
dstSubfolderSpec = 13;
files = (
F00DCAFE000000000000E00B /* StikDebugWidgets.appex in Embed Foundation Extensions */,
);
name = "Embed Foundation Extensions";
runOnlyForDeploymentPostprocessing = 0;
@ -47,6 +56,7 @@
DC6F1D372D94EADD0071B2B6 /* StikDebug.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = StikDebug.app; sourceTree = BUILT_PRODUCTS_DIR; };
DC6F1D482D94EADF0071B2B6 /* StikDebugTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StikDebugTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
DC6F1D522D94EADF0071B2B6 /* StikDebugUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = StikDebugUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
F00DCAFE000000000000E002 /* StikDebugWidgets.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = StikDebugWidgets.appex; sourceTree = BUILT_PRODUCTS_DIR; };
/* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
@ -57,6 +67,13 @@
);
target = DC6F1D362D94EADD0071B2B6 /* StikDebug */;
};
F00DCAFE000000000000E00E /* Exceptions for "StikDebugWidgets" folder in "StikDebugWidgets" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
);
target = F00DCAFE000000000000E001 /* StikDebugWidgets */;
};
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
/* Begin PBXFileSystemSynchronizedRootGroup section */
@ -68,6 +85,19 @@
path = StikDebug;
sourceTree = "<group>";
};
F00DCAFE000000000000E006 /* StikDebugWidgets */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
F00DCAFE000000000000E00E /* Exceptions for "StikDebugWidgets" folder in "StikDebugWidgets" target */,
);
path = StikDebugWidgets;
sourceTree = "<group>";
};
F00DCAFE000000000000E007 /* StikDebugShared */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = StikDebugShared;
sourceTree = "<group>";
};
DC6F1D4B2D94EADF0071B2B6 /* StikDebugTests */ = {
isa = PBXFileSystemSynchronizedRootGroup;
path = StikDebugTests;
@ -104,6 +134,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
F00DCAFE000000000000E004 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */
/* Begin PBXGroup section */
@ -111,6 +148,8 @@
isa = PBXGroup;
children = (
DC6F1D392D94EADD0071B2B6 /* StikDebug */,
F00DCAFE000000000000E007 /* StikDebugShared */,
F00DCAFE000000000000E006 /* StikDebugWidgets */,
DC6F1D4B2D94EADF0071B2B6 /* StikDebugTests */,
DC6F1D552D94EADF0071B2B6 /* StikDebugUITests */,
DC6F1D752D94EB620071B2B6 /* Frameworks */,
@ -124,6 +163,7 @@
DC6F1D372D94EADD0071B2B6 /* StikDebug.app */,
DC6F1D482D94EADF0071B2B6 /* StikDebugTests.xctest */,
DC6F1D522D94EADF0071B2B6 /* StikDebugUITests.xctest */,
F00DCAFE000000000000E002 /* StikDebugWidgets.appex */,
);
name = Products;
sourceTree = "<group>";
@ -152,9 +192,11 @@
buildRules = (
);
dependencies = (
F00DCAFE000000000000E00C /* PBXTargetDependency */,
);
fileSystemSynchronizedGroups = (
DC6F1D392D94EADD0071B2B6 /* StikDebug */,
F00DCAFE000000000000E007 /* StikDebugShared */,
);
name = StikDebug;
packageProductDependencies = (
@ -165,6 +207,29 @@
productReference = DC6F1D372D94EADD0071B2B6 /* StikDebug.app */;
productType = "com.apple.product-type.application";
};
F00DCAFE000000000000E001 /* StikDebugWidgets */ = {
isa = PBXNativeTarget;
buildConfigurationList = F00DCAFE000000000000E008 /* Build configuration list for PBXNativeTarget "StikDebugWidgets" */;
buildPhases = (
F00DCAFE000000000000E003 /* Sources */,
F00DCAFE000000000000E004 /* Frameworks */,
F00DCAFE000000000000E005 /* Resources */,
);
buildRules = (
);
dependencies = (
);
fileSystemSynchronizedGroups = (
F00DCAFE000000000000E006 /* StikDebugWidgets */,
F00DCAFE000000000000E007 /* StikDebugShared */,
);
name = StikDebugWidgets;
packageProductDependencies = (
);
productName = StikDebugWidgets;
productReference = F00DCAFE000000000000E002 /* StikDebugWidgets.appex */;
productType = "com.apple.product-type.app-extension";
};
DC6F1D472D94EADF0071B2B6 /* StikDebugTests */ = {
isa = PBXNativeTarget;
buildConfigurationList = DC6F1D5F2D94EADF0071B2B6 /* Build configuration list for PBXNativeTarget "StikDebugTests" */;
@ -233,6 +298,9 @@
CreatedOnToolsVersion = 16.2;
TestTargetID = DC6F1D362D94EADD0071B2B6;
};
F00DCAFE000000000000E001 = {
CreatedOnToolsVersion = 16.2;
};
};
};
buildConfigurationList = DC6F1D322D94EADD0071B2B6 /* Build configuration list for PBXProject "StikDebug" */;
@ -255,6 +323,7 @@
projectRoot = "";
targets = (
DC6F1D362D94EADD0071B2B6 /* StikDebug */,
F00DCAFE000000000000E001 /* StikDebugWidgets */,
DC6F1D472D94EADF0071B2B6 /* StikDebugTests */,
DC6F1D512D94EADF0071B2B6 /* StikDebugUITests */,
);
@ -283,6 +352,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
F00DCAFE000000000000E005 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */
/* Begin PBXSourcesBuildPhase section */
@ -307,6 +383,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
F00DCAFE000000000000E003 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
@ -320,6 +403,11 @@
target = DC6F1D362D94EADD0071B2B6 /* StikDebug */;
targetProxy = DC6F1D532D94EADF0071B2B6 /* PBXContainerItemProxy */;
};
F00DCAFE000000000000E00C /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = F00DCAFE000000000000E001 /* StikDebugWidgets */;
targetProxy = F00DCAFE000000000000E00D /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */
@ -668,6 +756,64 @@
};
name = Release;
};
F00DCAFE000000000000E009 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = StikDebugWidgets/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = StikDebug;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 17.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 3.1.6;
PRODUCT_BUNDLE_IDENTIFIER = com.stik.stikdebug.widgets;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
F00DCAFE000000000000E00A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = StikDebugWidgets/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = StikDebug;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 17.4;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 3.1.6;
PRODUCT_BUNDLE_IDENTIFIER = com.stik.stikdebug.widgets;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = auto;
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */
@ -707,6 +853,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F00DCAFE000000000000E008 /* Build configuration list for PBXNativeTarget "StikDebugWidgets" */ = {
isa = XCConfigurationList;
buildConfigurations = (
F00DCAFE000000000000E009 /* Debug */,
F00DCAFE000000000000E00A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
/* Begin XCRemoteSwiftPackageReference section */