diff --git a/NucleicRemote/NucleicRemote.xcodeproj/project.pbxproj b/NucleicRemote/NucleicRemote.xcodeproj/project.pbxproj index 48ce307..ca50297 100644 --- a/NucleicRemote/NucleicRemote.xcodeproj/project.pbxproj +++ b/NucleicRemote/NucleicRemote.xcodeproj/project.pbxproj @@ -11,6 +11,7 @@ BF00000000000000000002 /* NucleicRemoteWidgets.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = FR00000000000000000002 /* NucleicRemoteWidgets.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; E7D43FF12FF0806800BF2407 /* app-logo-file.icon in Resources */ = {isa = PBXBuildFile; fileRef = E7D43FF02FF0806800BF2407 /* app-logo-file.icon */; }; E7D43FF12FF0806800BF2408 /* app-logo-canary.icon in Resources */ = {isa = PBXBuildFile; fileRef = E7D43FF02FF0806800BF2408 /* app-logo-canary.icon */; }; + E7D43FF12FF0806800BF2409 /* app-logo-beta.icon in Resources */ = {isa = PBXBuildFile; fileRef = E7D43FF02FF0806800BF2409 /* app-logo-beta.icon */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -40,6 +41,7 @@ /* Begin PBXFileReference section */ E7D43FF02FF0806800BF2407 /* app-logo-file.icon */ = {isa = PBXFileReference; lastKnownFileType = folder.iconcomposer.icon; path = "app-logo-file.icon"; sourceTree = ""; }; E7D43FF02FF0806800BF2408 /* app-logo-canary.icon */ = {isa = PBXFileReference; lastKnownFileType = folder.iconcomposer.icon; name = "app-logo-canary.icon"; path = "../../app-logo-canary.icon"; sourceTree = ""; }; + E7D43FF02FF0806800BF2409 /* app-logo-beta.icon */ = {isa = PBXFileReference; lastKnownFileType = folder.iconcomposer.icon; name = "app-logo-beta.icon"; path = "../../app-logo-beta.icon"; sourceTree = ""; }; FR00000000000000000001 /* NucleicRemote.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = NucleicRemote.app; sourceTree = BUILT_PRODUCTS_DIR; }; FR00000000000000000002 /* NucleicRemoteWidgets.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = NucleicRemoteWidgets.appex; sourceTree = BUILT_PRODUCTS_DIR; }; /* End PBXFileReference section */ @@ -113,6 +115,7 @@ GR00000000000000000002 /* Products */, E7D43FF02FF0806800BF2407 /* app-logo-file.icon */, E7D43FF02FF0806800BF2408 /* app-logo-canary.icon */, + E7D43FF02FF0806800BF2409 /* app-logo-beta.icon */, ); sourceTree = ""; }; @@ -136,6 +139,7 @@ BP00000000000000000003 /* Frameworks */, BP00000000000000000004 /* Resources */, BP00000000000000000005 /* Embed Foundation Extensions */, + BP00000000000000000009 /* Stamp git commit into Info.plist */, ); buildRules = ( ); @@ -223,6 +227,7 @@ files = ( E7D43FF12FF0806800BF2407 /* app-logo-file.icon in Resources */, E7D43FF12FF0806800BF2408 /* app-logo-canary.icon in Resources */, + E7D43FF12FF0806800BF2409 /* app-logo-beta.icon in Resources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -235,6 +240,24 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + BP00000000000000000009 /* Stamp git commit into Info.plist */ = { + isa = PBXShellScriptBuildPhase; + alwaysOutOfDate = 1; + buildActionMask = 2147483647; + files = ( + ); + inputPaths = ( + ); + name = "Stamp git commit into Info.plist"; + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Stamp the short git commit into the built Info.plist (NucleicCommit key), the iOS\n# mirror of the Mac's EmbedGitCommit prebuild plugin. Runs before code signing so the\n# signature covers the stamped value; alwaysOutOfDate keeps it fresh on every build. A\n# trailing \"+\" marks a dirty tree; \"unknown\" (no git) makes the app fall back to the\n# bundle build number.\nset -e\nplist=\"${TARGET_BUILD_DIR}/${INFOPLIST_PATH}\"\n[ -f \"$plist\" ] || exit 0\nhash=$(git -C \"${SRCROOT}\" rev-parse --short HEAD 2>/dev/null || echo unknown)\nif [ \"$hash\" != unknown ] && [ -n \"$(git -C \"${SRCROOT}\" status --porcelain 2>/dev/null)\" ]; then\n hash=\"${hash}+\"\nfi\n/usr/libexec/PlistBuddy -c \"Set :NucleicCommit $hash\" \"$plist\" 2>/dev/null || /usr/libexec/PlistBuddy -c \"Add :NucleicCommit string $hash\" \"$plist\"\n"; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ BP00000000000000000002 /* Sources */ = { isa = PBXSourcesBuildPhase; @@ -305,6 +328,9 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = L7UDTQ6F5W; ENABLE_PREVIEWS = YES; + // The "Stamp git commit into Info.plist" phase shells out to git and rewrites the + // built Info.plist, both of which script sandboxing would block. + ENABLE_USER_SCRIPT_SANDBOXING = NO; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = NucleicRemote/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "Nucleic$(NUCLEIC_NAME_SUFFIX)"; @@ -349,6 +375,9 @@ CURRENT_PROJECT_VERSION = 1; DEVELOPMENT_TEAM = L7UDTQ6F5W; ENABLE_PREVIEWS = YES; + // The "Stamp git commit into Info.plist" phase shells out to git and rewrites the + // built Info.plist, both of which script sandboxing would block. + ENABLE_USER_SCRIPT_SANDBOXING = NO; GENERATE_INFOPLIST_FILE = YES; INFOPLIST_FILE = NucleicRemote/Info.plist; INFOPLIST_KEY_CFBundleDisplayName = "Nucleic$(NUCLEIC_NAME_SUFFIX)"; diff --git a/NucleicRemote/NucleicRemote/Info.plist b/NucleicRemote/NucleicRemote/Info.plist index bb77515..6b1a38f 100644 --- a/NucleicRemote/NucleicRemote/Info.plist +++ b/NucleicRemote/NucleicRemote/Info.plist @@ -8,6 +8,11 @@ NucleicChannel $(NUCLEIC_CHANNEL) + + NucleicCommit + NSSupportsLiveActivities