CodexBar 是一个 macOS 菜单栏应用,用于查看本机 Codex 账号状态、额度、Token 用量、详细统计信息
Swift appkitcodexcodex-clideveloper-toolsmacosmacos-appmenu-bar-appopenai-codexproductivityswiftswiftuiusage-tracker
refactor: 精简工程配置与构建参数处理
Bobdc965b0bb7af
diff --git a/CodexBar.xcodeproj/project.pbxproj b/CodexBar.xcodeproj/project.pbxprojdeleted file mode 100644index fbd4d9e..0000000--- a/CodexBar.xcodeproj/project.pbxproj+++ /dev/null@@ -1,1130 +0,0 @@-// !$*UTF8*$!-{- archiveVersion = 1;- classes = {- };- objectVersion = 110;- objects = {--/* Begin PBXBuildFile section */- A91000000000000000000001 /* SwiftTreeSitter in Frameworks */ = {isa = PBXBuildFile; productRef = A91000000000000000000011 /* SwiftTreeSitter */; };- A91000000000000000000002 /* TreeSitterBash in Frameworks */ = {isa = PBXBuildFile; productRef = A91000000000000000000012 /* TreeSitterBash */; };- A91000000000000000000003 /* SwiftTreeSitter in Frameworks */ = {isa = PBXBuildFile; productRef = A91000000000000000000011 /* SwiftTreeSitter */; };- A91000000000000000000004 /* TreeSitterBash in Frameworks */ = {isa = PBXBuildFile; productRef = A91000000000000000000012 /* TreeSitterBash */; };- B10000000000000000000005 /* CodexBarPowerHelper in Embed CodexBar Power Helper */ = {isa = PBXBuildFile; fileRef = B10000000000000000000014 /* CodexBarPowerHelper */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; };- C42A52F12FDACDEC004A2B53 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = C42A52F02FDACDEC004A2B53 /* Sparkle */; };- D10000000000000000000001 /* Sparkle in Frameworks */ = {isa = PBXBuildFile; productRef = C42A52F02FDACDEC004A2B53 /* Sparkle */; };- F10000000000000000000001 /* CodexBar Power Helper.app in Embed Power Helper Manager */ = {isa = PBXBuildFile; fileRef = F10000000000000000000014 /* CodexBar Power Helper.app */; };-/* End PBXBuildFile section */--/* Begin PBXContainerItemProxy section */- B10000000000000000000052 /* PBXContainerItemProxy */ = {- isa = PBXContainerItemProxy;- containerPortal = C4A0FD8D2FD9302E000263A7 /* Project object */;- proxyType = 1;- remoteGlobalIDString = B10000000000000000000031;- remoteInfo = CodexBarPowerHelper;- };- F10000000000000000000007 /* PBXContainerItemProxy */ = {- isa = PBXContainerItemProxy;- containerPortal = C4A0FD8D2FD9302E000263A7 /* Project object */;- proxyType = 1;- remoteGlobalIDString = F10000000000000000000010;- remoteInfo = CodexBarPowerHelperManager;- };-/* End PBXContainerItemProxy section */--/* Begin PBXCopyFilesBuildPhase section */- B10000000000000000000023 /* Embed CodexBar Power Helper */ = {- isa = PBXCopyFilesBuildPhase;- dstPath = Contents/Helpers;- dstSubfolder = Wrapper;- files = (- B10000000000000000000005 /* CodexBarPowerHelper in Embed CodexBar Power Helper */,- );- name = "Embed CodexBar Power Helper";- };- B10000000000000000000024 /* Copy LaunchDaemons */ = {- isa = PBXCopyFilesBuildPhase;- dstPath = Contents/Library/LaunchDaemons;- dstSubfolder = Wrapper;- files = (- );- name = "Copy LaunchDaemons";- };- F10000000000000000000004 /* Embed Power Helper Manager */ = {- isa = PBXCopyFilesBuildPhase;- dstPath = Contents/Helpers;- dstSubfolder = Wrapper;- files = (- F10000000000000000000001 /* CodexBar Power Helper.app in Embed Power Helper Manager */,- );- name = "Embed Power Helper Manager";- };-/* End PBXCopyFilesBuildPhase section */--/* Begin PBXFileReference section */- A82000000000000000000001 /* Standard.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Standard.xctestplan; sourceTree = "<group>"; };- A82000000000000000000002 /* Sanitizers.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Sanitizers.xctestplan; sourceTree = "<group>"; };- A82000000000000000000003 /* Unit.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Unit.xctestplan; sourceTree = "<group>"; };- A82000000000000000000004 /* Integration.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = Integration.xctestplan; sourceTree = "<group>"; };- B10000000000000000000014 /* CodexBarPowerHelper */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = CodexBarPowerHelper; sourceTree = BUILT_PRODUCTS_DIR; };- C449FB5030203E0000ED2123 /* Version.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Version.xcconfig; sourceTree = "<group>"; };- C449FB5030203E0000ED2124 /* BuildNumber.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = BuildNumber.xcconfig; sourceTree = "<group>"; };- C4A0FD952FD9302E000263A7 /* CodexBar Debug.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CodexBar Debug.app"; sourceTree = BUILT_PRODUCTS_DIR; };- D10000000000000000000002 /* CodexBarTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CodexBarTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };- E10000000000000000000002 /* CodexBarPowerHelperTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = CodexBarPowerHelperTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };- F10000000000000000000002 /* CodexBar Power Helper Debug.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CodexBar Power Helper Debug.app"; sourceTree = BUILT_PRODUCTS_DIR; };- F10000000000000000000014 /* CodexBar Power Helper.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; name = "CodexBar Power Helper.app"; path = "$(CODEXBAR_POWER_HELPER_MANAGER_WRAPPER_NAME)"; sourceTree = BUILT_PRODUCTS_DIR; };-/* End PBXFileReference section */--/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */- 9E664A582FDD47540016B96E /* Exceptions for "CodexBar" folder in "CodexBar" target */ = {- isa = PBXFileSystemSynchronizedBuildFileExceptionSet;- membershipExceptions = (- Resources/Info.plist,- );- target = C4A0FD942FD9302E000263A7 /* CodexBar */;- };- C4A0F93C3080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "CodexBarPowerHelperManager" target */ = {- isa = PBXFileSystemSynchronizedBuildFileExceptionSet;- membershipExceptions = (- Power/Manager/PowerHelperManagerMain.swift,- Power/Manager/Resources/AppIcon.icon,- Power/Shared/CodexBarPowerHelperXPC.swift,- Power/Shared/PowerHelperManagement.swift,- );- target = F10000000000000000000010 /* CodexBarPowerHelperManager */;- };- C4A0F93E3080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "CodexBarPowerHelperTests" target */ = {- isa = PBXFileSystemSynchronizedBuildFileExceptionSet;- membershipExceptions = (- Power/Daemon/OwnershipStore.swift,- Power/Daemon/Pmset.swift,- Power/Daemon/PowerHelperError.swift,- Power/Daemon/PowerHelperRuntime.swift,- Power/Shared/CodexBarPowerHelperXPC.swift,- Power/Shared/PowerHelperManagement.swift,- );- target = E10000000000000000000010 /* CodexBarPowerHelperTests */;- };- C4A0F93F3080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "CodexBarTests" target */ = {- isa = PBXFileSystemSynchronizedBuildFileExceptionSet;- membershipExceptions = (- Power/Shared/CodexBarPowerHelperXPC.swift,- Power/Shared/PowerHelperManagement.swift,- );- target = D10000000000000000000010 /* CodexBarTests */;- };- C4A0F9403080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "CodexBar" target */ = {- isa = PBXFileSystemSynchronizedBuildFileExceptionSet;- membershipExceptions = (- Power/Shared/CodexBarPowerHelperXPC.swift,- Power/Shared/PowerHelperManagement.swift,- );- target = C4A0FD942FD9302E000263A7 /* CodexBar */;- };- C4A0F9413080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "CodexBarPowerHelper" target */ = {- isa = PBXFileSystemSynchronizedBuildFileExceptionSet;- membershipExceptions = (- Power/Daemon/main.swift,- Power/Daemon/OwnershipStore.swift,- Power/Daemon/Pmset.swift,- Power/Daemon/PowerHelperError.swift,- Power/Daemon/PowerHelperRuntime.swift,- Power/Shared/CodexBarPowerHelperXPC.swift,- Power/Shared/PowerHelperManagement.swift,- );- target = B10000000000000000000031 /* CodexBarPowerHelper */;- };- C4A0F9C93080B50F00F73F58 /* Exceptions for "Tests" folder in "CodexBarPowerHelperTests" target */ = {- isa = PBXFileSystemSynchronizedBuildFileExceptionSet;- membershipExceptions = (- Helpers/Power/PowerHelperSleepTests.swift,- Helpers/Power/PowerHelperTestSupport.swift,- Helpers/Power/PowerHelperUpdateTests.swift,- );- target = E10000000000000000000010 /* CodexBarPowerHelperTests */;- };- C4A0F9CA3080B50F00F73F58 /* Exceptions for "Tests" folder in "CodexBarTests" target */ = {- isa = PBXFileSystemSynchronizedBuildFileExceptionSet;- membershipExceptions = (- Helpers/Power/PowerHelperSleepTests.swift,- Helpers/Power/PowerHelperTestSupport.swift,- Helpers/Power/PowerHelperUpdateTests.swift,- );- target = D10000000000000000000010 /* CodexBarTests */;- };- D10000000000000000000003 /* Exceptions for "CodexBar" folder in "CodexBarTests" target */ = {- isa = PBXFileSystemSynchronizedBuildFileExceptionSet;- membershipExceptions = (- App/CodexBarMain.swift,- Resources/AppIcon.icon,- Resources/Info.plist,- );- target = D10000000000000000000010 /* CodexBarTests */;- };-/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */--/* Begin PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet section */- C4A0F93D3080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "Copy LaunchDaemons" phase from "CodexBarPowerHelperManager" target */ = {- isa = PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet;- buildPhase = B10000000000000000000024 /* Copy LaunchDaemons */;- membershipExceptions = (- Power/Daemon/CodexBarPowerHelper.Debug.plist,- Power/Daemon/CodexBarPowerHelper.plist,- );- };-/* End PBXFileSystemSynchronizedGroupBuildPhaseMembershipExceptionSet section */--/* Begin PBXFileSystemSynchronizedRootGroup section */- 9E664A4C2FDD47530016B96E /* CodexBar */ = {- isa = PBXFileSystemSynchronizedRootGroup;- exceptions = (- D10000000000000000000003 /* Exceptions for "CodexBar" folder in "CodexBarTests" target */,- 9E664A582FDD47540016B96E /* Exceptions for "CodexBar" folder in "CodexBar" target */,- );- path = CodexBar;- sourceTree = "<group>";- };- C449FB4E30203A1100ED2123 /* Shared */ = {- isa = PBXFileSystemSynchronizedRootGroup;- path = Shared;- sourceTree = "<group>";- };- C4A0F9243080B50900F73F58 /* CodexBarHelper */ = {- isa = PBXFileSystemSynchronizedRootGroup;- exceptions = (- C4A0F93C3080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "CodexBarPowerHelperManager" target */,- C4A0F93D3080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "Copy LaunchDaemons" phase from "CodexBarPowerHelperManager" target */,- C4A0F93E3080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "CodexBarPowerHelperTests" target */,- C4A0F93F3080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "CodexBarTests" target */,- C4A0F9403080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "CodexBar" target */,- C4A0F9413080B50A00F73F58 /* Exceptions for "CodexBarHelper" folder in "CodexBarPowerHelper" target */,- );- path = CodexBarHelper;- sourceTree = "<group>";- };- C4A0F98B3080B50E00F73F58 /* Tests */ = {- isa = PBXFileSystemSynchronizedRootGroup;- exceptions = (- C4A0F9C93080B50F00F73F58 /* Exceptions for "Tests" folder in "CodexBarPowerHelperTests" target */,- C4A0F9CA3080B50F00F73F58 /* Exceptions for "Tests" folder in "CodexBarTests" target */,- );- path = Tests;- sourceTree = "<group>";- };-/* End PBXFileSystemSynchronizedRootGroup section */--/* Begin PBXFrameworksBuildPhase section */- B10000000000000000000022 /* Frameworks */ = {- isa = PBXFrameworksBuildPhase;- files = (- );- };- C4A0FD922FD9302E000263A7 /* Frameworks */ = {- isa = PBXFrameworksBuildPhase;- files = (- A91000000000000000000001 /* SwiftTreeSitter in Frameworks */,- A91000000000000000000002 /* TreeSitterBash in Frameworks */,- C42A52F12FDACDEC004A2B53 /* Sparkle in Frameworks */,- );- };- D10000000000000000000005 /* Frameworks */ = {- isa = PBXFrameworksBuildPhase;- files = (- A91000000000000000000003 /* SwiftTreeSitter in Frameworks */,- A91000000000000000000004 /* TreeSitterBash in Frameworks */,- D10000000000000000000001 /* Sparkle in Frameworks */,- );- };- E10000000000000000000005 /* Frameworks */ = {- isa = PBXFrameworksBuildPhase;- files = (- );- };- F10000000000000000000006 /* Frameworks */ = {- isa = PBXFrameworksBuildPhase;- files = (- );- };-/* End PBXFrameworksBuildPhase section */--/* Begin PBXGroup section */- C449FB5130203E0000ED2123 /* Config */ = {- isa = PBXGroup;- children = (- C449FB5030203E0000ED2123 /* Version.xcconfig */,- C449FB5030203E0000ED2124 /* BuildNumber.xcconfig */,- A82000000000000000000003 /* Unit.xctestplan */,- A82000000000000000000004 /* Integration.xctestplan */,- A82000000000000000000001 /* Standard.xctestplan */,- A82000000000000000000002 /* Sanitizers.xctestplan */,- );- path = Config;- sourceTree = "<group>";- };- C4A0FD8C2FD9302E000263A7 = {- isa = PBXGroup;- children = (- 9E664A4C2FDD47530016B96E /* CodexBar */,- C4A0F9243080B50900F73F58 /* CodexBarHelper */,- C4A0F98B3080B50E00F73F58 /* Tests */,- C449FB4E30203A1100ED2123 /* Shared */,- C449FB5130203E0000ED2123 /* Config */,- C4A0FD962FD9302E000263A7 /* Products */,- );- sourceTree = "<group>";- };- C4A0FD962FD9302E000263A7 /* Products */ = {- isa = PBXGroup;- children = (- C4A0FD952FD9302E000263A7 /* CodexBar Debug.app */,- D10000000000000000000002 /* CodexBarTests.xctest */,- E10000000000000000000002 /* CodexBarPowerHelperTests.xctest */,- B10000000000000000000014 /* CodexBarPowerHelper */,- F10000000000000000000002 /* CodexBar Power Helper Debug.app */,- F10000000000000000000014 /* CodexBar Power Helper.app */,- );- name = Products;- sourceTree = "<group>";- };-/* End PBXGroup section */--/* Begin PBXNativeTarget section */- B10000000000000000000031 /* CodexBarPowerHelper */ = {- isa = PBXNativeTarget;- buildConfigurationList = B10000000000000000000032 /* Build configuration list for PBXNativeTarget "CodexBarPowerHelper" */;- buildPhases = (- B10000000000000000000021 /* Sources */,- B10000000000000000000022 /* Frameworks */,- );- buildRules = (- );- fileSystemSynchronizedGroups = (- C449FB4E30203A1100ED2123 /* Shared */,- );- name = CodexBarPowerHelper;- productName = CodexBarPowerHelper;- productReference = B10000000000000000000014 /* CodexBarPowerHelper */;- productType = "com.apple.product-type.tool";- };- C4A0FD942FD9302E000263A7 /* CodexBar */ = {- isa = PBXNativeTarget;- buildConfigurationList = C4A0FDA02FD9302E000263A7 /* Build configuration list for PBXNativeTarget "CodexBar" */;- buildPhases = (- C4A0FD912FD9302E000263A7 /* Sources */,- C4A0FD922FD9302E000263A7 /* Frameworks */,- C4A0FD932FD9302E000263A7 /* Resources */,- F10000000000000000000004 /* Embed Power Helper Manager */,- );- buildRules = (- );- dependencies = (- F10000000000000000000008 /* PBXTargetDependency */,- );- fileSystemSynchronizedGroups = (- 9E664A4C2FDD47530016B96E /* CodexBar */,- C449FB4E30203A1100ED2123 /* Shared */,- );- name = CodexBar;- packageProductDependencies = (- A91000000000000000000011 /* SwiftTreeSitter */,- A91000000000000000000012 /* TreeSitterBash */,- C42A52F02FDACDEC004A2B53 /* Sparkle */,- );- productName = CodexBar;- productReference = C4A0FD952FD9302E000263A7 /* CodexBar Debug.app */;- productType = "com.apple.product-type.application";- };- D10000000000000000000010 /* CodexBarTests */ = {- isa = PBXNativeTarget;- buildConfigurationList = D10000000000000000000011 /* Build configuration list for PBXNativeTarget "CodexBarTests" */;- buildPhases = (- D10000000000000000000006 /* Sources */,- D10000000000000000000005 /* Frameworks */,- D10000000000000000000007 /* Resources */,- );- buildRules = (- );- fileSystemSynchronizedGroups = (- 9E664A4C2FDD47530016B96E /* CodexBar */,- C449FB4E30203A1100ED2123 /* Shared */,- C4A0F98B3080B50E00F73F58 /* Tests */,- );- name = CodexBarTests;- packageProductDependencies = (- A91000000000000000000011 /* SwiftTreeSitter */,- A91000000000000000000012 /* TreeSitterBash */,- C42A52F02FDACDEC004A2B53 /* Sparkle */,- );- productName = CodexBarTests;- productReference = D10000000000000000000002 /* CodexBarTests.xctest */;- productType = "com.apple.product-type.bundle.unit-test";- };- E10000000000000000000010 /* CodexBarPowerHelperTests */ = {- isa = PBXNativeTarget;- buildConfigurationList = E10000000000000000000011 /* Build configuration list for PBXNativeTarget "CodexBarPowerHelperTests" */;- buildPhases = (- E10000000000000000000006 /* Sources */,- E10000000000000000000005 /* Frameworks */,- );- buildRules = (- );- fileSystemSynchronizedGroups = (- C449FB4E30203A1100ED2123 /* Shared */,- );- name = CodexBarPowerHelperTests;- productName = CodexBarPowerHelperTests;- productReference = E10000000000000000000002 /* CodexBarPowerHelperTests.xctest */;- productType = "com.apple.product-type.bundle.unit-test";- };- F10000000000000000000010 /* CodexBarPowerHelperManager */ = {- isa = PBXNativeTarget;- buildConfigurationList = F10000000000000000000011 /* Build configuration list for PBXNativeTarget "CodexBarPowerHelperManager" */;- buildPhases = (- F10000000000000000000005 /* Sources */,- F10000000000000000000006 /* Frameworks */,- F10000000000000000000009 /* Resources */,- B10000000000000000000023 /* Embed CodexBar Power Helper */,- B10000000000000000000024 /* Copy LaunchDaemons */,- );- buildRules = (- );- dependencies = (- B10000000000000000000051 /* PBXTargetDependency */,- );- fileSystemSynchronizedGroups = (- C449FB4E30203A1100ED2123 /* Shared */,- );- name = CodexBarPowerHelperManager;- productName = CodexBarPowerHelperManager;- productReference = F10000000000000000000002 /* CodexBar Power Helper Debug.app */;- productType = "com.apple.product-type.application";- };-/* End PBXNativeTarget section */--/* Begin PBXProject section */- C4A0FD8D2FD9302E000263A7 /* Project object */ = {- isa = PBXProject;- attributes = {- BuildIndependentTargetsInParallel = 1;- LastSwiftUpdateCheck = 2650;- LastUpgradeCheck = 2700;- TargetAttributes = {- B10000000000000000000031 = {- CreatedOnToolsVersion = 26.5;- };- C4A0FD942FD9302E000263A7 = {- CreatedOnToolsVersion = 26.5;- };- };- };- buildConfigurationList = C4A0FD902FD9302E000263A7 /* Build configuration list for PBXProject "CodexBar" */;- developmentRegion = "zh-Hans";- hasScannedForEncodings = 0;- knownRegions = (- en,- "zh-Hans",- Base,- );- mainGroup = C4A0FD8C2FD9302E000263A7;- minimizedProjectReferenceProxies = 1;- packageReferences = (- A91000000000000000000021 /* XCRemoteSwiftPackageReference "swift-tree-sitter" */,- A91000000000000000000022 /* XCRemoteSwiftPackageReference "tree-sitter-bash" */,- C42A52EF2FDACDEC004A2B53 /* XCRemoteSwiftPackageReference "Sparkle" */,- );- preferredProjectObjectVersion = 110;- productRefGroup = C4A0FD962FD9302E000263A7 /* Products */;- projectDirPath = "";- projectRoot = "";- targets = (- F10000000000000000000010 /* CodexBarPowerHelperManager */,- E10000000000000000000010 /* CodexBarPowerHelperTests */,- D10000000000000000000010 /* CodexBarTests */,- C4A0FD942FD9302E000263A7 /* CodexBar */,- B10000000000000000000031 /* CodexBarPowerHelper */,- );- };-/* End PBXProject section */--/* Begin PBXResourcesBuildPhase section */- C4A0FD932FD9302E000263A7 /* Resources */ = {- isa = PBXResourcesBuildPhase;- files = (- );- };- D10000000000000000000007 /* Resources */ = {- isa = PBXResourcesBuildPhase;- files = (- );- };- F10000000000000000000009 /* Resources */ = {- isa = PBXResourcesBuildPhase;- files = (- );- };-/* End PBXResourcesBuildPhase section */--/* Begin PBXSourcesBuildPhase section */- B10000000000000000000021 /* Sources */ = {- isa = PBXSourcesBuildPhase;- files = (- );- };- C4A0FD912FD9302E000263A7 /* Sources */ = {- isa = PBXSourcesBuildPhase;- files = (- );- };- D10000000000000000000006 /* Sources */ = {- isa = PBXSourcesBuildPhase;- files = (- );- };- E10000000000000000000006 /* Sources */ = {- isa = PBXSourcesBuildPhase;- files = (- );- };- F10000000000000000000005 /* Sources */ = {- isa = PBXSourcesBuildPhase;- files = (- );- };-/* End PBXSourcesBuildPhase section */--/* Begin PBXTargetDependency section */- B10000000000000000000051 /* PBXTargetDependency */ = {- isa = PBXTargetDependency;- target = B10000000000000000000031 /* CodexBarPowerHelper */;- targetProxy = B10000000000000000000052 /* PBXContainerItemProxy */;- };- F10000000000000000000008 /* PBXTargetDependency */ = {- isa = PBXTargetDependency;- target = F10000000000000000000010 /* CodexBarPowerHelperManager */;- targetProxy = F10000000000000000000007 /* PBXContainerItemProxy */;- };-/* End PBXTargetDependency section */--/* Begin XCBuildConfiguration section */- A82900000000000000000001 /* DebugTest configuration for PBXNativeTarget "CodexBarPowerHelper" */ = {- isa = XCBuildConfiguration;- buildSettings = {- "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";- CODE_SIGN_STYLE = Automatic;- CREATE_INFOPLIST_SECTION_IN_BINARY = YES;- ENABLE_APP_SANDBOX = NO;- ENABLE_HARDENED_RUNTIME = YES;- GENERATE_INFOPLIST_FILE = YES;- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.helper.power.debug;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- };- name = DebugTest;- };- A82900000000000000000002 /* DebugTest configuration for PBXProject "CodexBar" */ = {- isa = XCBuildConfiguration;- baseConfigurationReference = C449FB5030203E0000ED2123 /* Version.xcconfig */;- buildSettings = {- ALWAYS_SEARCH_USER_PATHS = NO;- ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;- CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;- CLANG_ANALYZER_NONNULL = YES;- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";- CLANG_ENABLE_MODULES = YES;- CLANG_ENABLE_OBJC_ARC = YES;- CLANG_ENABLE_OBJC_WEAK = YES;- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;- CLANG_WARN_BOOL_CONVERSION = YES;- CLANG_WARN_COMMA = YES;- CLANG_WARN_CONSTANT_CONVERSION = YES;- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;- CLANG_WARN_EMPTY_BODY = YES;- CLANG_WARN_ENUM_CONVERSION = YES;- CLANG_WARN_INFINITE_RECURSION = YES;- CLANG_WARN_INT_CONVERSION = YES;- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;- CLANG_WARN_STRICT_PROTOTYPES = YES;- CLANG_WARN_SUSPICIOUS_MOVE = YES;- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;- CLANG_WARN_UNREACHABLE_CODE = YES;- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;- CODEXBAR_AUTO_INCREMENT_BUILD_NUMBER = NO;- CODEXBAR_POWER_HELPER_MANAGER_WRAPPER_NAME = "CodexBar Power Helper Debug.app";- COMPILATION_CACHE_ENABLE_CACHING = YES;- COPY_PHASE_STRIP = NO;- DEAD_CODE_STRIPPING = YES;- DEBUG_INFORMATION_FORMAT = dwarf;- DEVELOPMENT_TEAM = 4KJ362VJW5;- ENABLE_STRICT_OBJC_MSGSEND = YES;- ENABLE_TESTABILITY = YES;- ENABLE_USER_SCRIPT_SANDBOXING = YES;- GCC_C_LANGUAGE_STANDARD = gnu17;- GCC_DYNAMIC_NO_PIC = NO;- GCC_NO_COMMON_BLOCKS = YES;- GCC_OPTIMIZATION_LEVEL = 0;- GCC_PREPROCESSOR_DEFINITIONS = (- "DEBUG=1",- "$(inherited)",- );- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;- GCC_WARN_UNDECLARED_SELECTOR = YES;- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;- GCC_WARN_UNUSED_FUNCTION = YES;- GCC_WARN_UNUSED_VARIABLE = YES;- LOCALIZATION_PREFERS_STRING_CATALOGS = YES;- MACOSX_DEPLOYMENT_TARGET = 15.0;- MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;- MTL_FAST_MATH = YES;- ONLY_ACTIVE_ARCH = YES;- SDKROOT = macosx;- STRING_CATALOG_GENERATE_SYMBOLS = YES;- SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";- SWIFT_OPTIMIZATION_LEVEL = "-Onone";- SWIFT_VERSION = 6.0;- };- name = DebugTest;- };- A82900000000000000000003 /* DebugTest configuration for PBXNativeTarget "CodexBar" */ = {- isa = XCBuildConfiguration;- buildSettings = {- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;- ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;- CODE_SIGN_ENTITLEMENTS = CodexBar/Resources/CodexBar.entitlements;- "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";- CODE_SIGN_STYLE = Automatic;- COMBINE_HIDPI_IMAGES = YES;- ENABLE_APP_SANDBOX = NO;- ENABLE_HARDENED_RUNTIME = YES;- ENABLE_PREVIEWS = YES;- ENABLE_USER_SELECTED_FILES = NO;- EXCLUDED_SOURCE_FILE_NAMES = CodexBarPowerHelper.plist;- GENERATE_INFOPLIST_FILE = NO;- INFOPLIST_FILE = CodexBar/Resources/Info.plist;- INFOPLIST_KEY_CFBundleDisplayName = "CodexBar Debug";- LD_RUNPATH_SEARCH_PATHS = (- "$(inherited)",- "@executable_path/../Frameworks",- );- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.debug;- PRODUCT_NAME = "$(TARGET_NAME)";- SWIFT_APPROACHABLE_CONCURRENCY = YES;- SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;- SWIFT_EMIT_LOC_STRINGS = YES;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- WRAPPER_NAME = "CodexBar Debug.app";- };- name = DebugTest;- };- A82900000000000000000004 /* DebugTest configuration for PBXNativeTarget "CodexBarTests" */ = {- isa = XCBuildConfiguration;- buildSettings = {- CODE_SIGN_STYLE = Automatic;- ENABLE_APP_SANDBOX = NO;- GENERATE_INFOPLIST_FILE = YES;- LD_RUNPATH_SEARCH_PATHS = (- "$(inherited)",- "@loader_path/../Frameworks",- "@executable_path/../Frameworks",- );- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.tests;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_APPROACHABLE_CONCURRENCY = YES;- SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;- SWIFT_EMIT_LOC_STRINGS = NO;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- };- name = DebugTest;- };- A82900000000000000000005 /* DebugTest configuration for PBXNativeTarget "CodexBarPowerHelperTests" */ = {- isa = XCBuildConfiguration;- buildSettings = {- CODE_SIGN_STYLE = Automatic;- ENABLE_APP_SANDBOX = NO;- GENERATE_INFOPLIST_FILE = YES;- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.helper.power.tests;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_EMIT_LOC_STRINGS = NO;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- };- name = DebugTest;- };- A82900000000000000000006 /* DebugTest configuration for PBXNativeTarget "CodexBarPowerHelperManager" */ = {- isa = XCBuildConfiguration;- buildSettings = {- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;- CODE_SIGN_IDENTITY = "Apple Development";- CODE_SIGN_STYLE = Automatic;- ENABLE_APP_SANDBOX = NO;- ENABLE_HARDENED_RUNTIME = YES;- EXCLUDED_SOURCE_FILE_NAMES = CodexBarPowerHelper.plist;- GENERATE_INFOPLIST_FILE = YES;- INFOPLIST_KEY_CFBundleDisplayName = "CodexBar Power Helper Debug";- INFOPLIST_KEY_LSUIElement = YES;- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.helper.power.manager.debug;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_EMIT_LOC_STRINGS = NO;- WRAPPER_NAME = "$(CODEXBAR_POWER_HELPER_MANAGER_WRAPPER_NAME)";- };- name = DebugTest;- };- B10000000000000000000033 /* Debug configuration for PBXNativeTarget "CodexBarPowerHelper" */ = {- isa = XCBuildConfiguration;- buildSettings = {- "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";- CODE_SIGN_STYLE = Automatic;- CREATE_INFOPLIST_SECTION_IN_BINARY = YES;- ENABLE_APP_SANDBOX = NO;- ENABLE_HARDENED_RUNTIME = YES;- GENERATE_INFOPLIST_FILE = YES;- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.helper.power.debug;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- };- name = Debug;- };- B10000000000000000000034 /* Release configuration for PBXNativeTarget "CodexBarPowerHelper" */ = {- isa = XCBuildConfiguration;- buildSettings = {- "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";- CODE_SIGN_STYLE = Automatic;- CREATE_INFOPLIST_SECTION_IN_BINARY = YES;- ENABLE_APP_SANDBOX = NO;- ENABLE_HARDENED_RUNTIME = YES;- GENERATE_INFOPLIST_FILE = YES;- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.helper.power;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- };- name = Release;- };- C4A0FD9E2FD9302E000263A7 /* Debug configuration for PBXProject "CodexBar" */ = {- isa = XCBuildConfiguration;- baseConfigurationReference = C449FB5030203E0000ED2123 /* Version.xcconfig */;- buildSettings = {- ALWAYS_SEARCH_USER_PATHS = NO;- ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;- CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;- CLANG_ANALYZER_NONNULL = YES;- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";- CLANG_ENABLE_MODULES = YES;- CLANG_ENABLE_OBJC_ARC = YES;- CLANG_ENABLE_OBJC_WEAK = YES;- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;- CLANG_WARN_BOOL_CONVERSION = YES;- CLANG_WARN_COMMA = YES;- CLANG_WARN_CONSTANT_CONVERSION = YES;- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;- CLANG_WARN_EMPTY_BODY = YES;- CLANG_WARN_ENUM_CONVERSION = YES;- CLANG_WARN_INFINITE_RECURSION = YES;- CLANG_WARN_INT_CONVERSION = YES;- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;- CLANG_WARN_STRICT_PROTOTYPES = YES;- CLANG_WARN_SUSPICIOUS_MOVE = YES;- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;- CLANG_WARN_UNREACHABLE_CODE = YES;- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;- CODEXBAR_POWER_HELPER_MANAGER_WRAPPER_NAME = "CodexBar Power Helper Debug.app";- COMPILATION_CACHE_ENABLE_CACHING = YES;- COPY_PHASE_STRIP = NO;- DEAD_CODE_STRIPPING = YES;- DEBUG_INFORMATION_FORMAT = dwarf;- DEVELOPMENT_TEAM = 4KJ362VJW5;- ENABLE_STRICT_OBJC_MSGSEND = YES;- ENABLE_TESTABILITY = YES;- ENABLE_USER_SCRIPT_SANDBOXING = YES;- GCC_C_LANGUAGE_STANDARD = gnu17;- GCC_DYNAMIC_NO_PIC = NO;- GCC_NO_COMMON_BLOCKS = YES;- GCC_OPTIMIZATION_LEVEL = 0;- GCC_PREPROCESSOR_DEFINITIONS = (- "DEBUG=1",- "$(inherited)",- );- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;- GCC_WARN_UNDECLARED_SELECTOR = YES;- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;- GCC_WARN_UNUSED_FUNCTION = YES;- GCC_WARN_UNUSED_VARIABLE = YES;- LOCALIZATION_PREFERS_STRING_CATALOGS = YES;- MACOSX_DEPLOYMENT_TARGET = 15.0;- MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;- MTL_FAST_MATH = YES;- ONLY_ACTIVE_ARCH = YES;- SDKROOT = macosx;- STRING_CATALOG_GENERATE_SYMBOLS = YES;- SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";- SWIFT_OPTIMIZATION_LEVEL = "-Onone";- SWIFT_VERSION = 6.0;- };- name = Debug;- };- C4A0FD9F2FD9302E000263A7 /* Release configuration for PBXProject "CodexBar" */ = {- isa = XCBuildConfiguration;- baseConfigurationReference = C449FB5030203E0000ED2123 /* Version.xcconfig */;- buildSettings = {- ALWAYS_SEARCH_USER_PATHS = NO;- ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS = YES;- CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;- CLANG_ANALYZER_NONNULL = YES;- CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;- CLANG_CXX_LANGUAGE_STANDARD = "gnu++20";- CLANG_ENABLE_MODULES = YES;- CLANG_ENABLE_OBJC_ARC = YES;- CLANG_ENABLE_OBJC_WEAK = YES;- CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;- CLANG_WARN_BOOL_CONVERSION = YES;- CLANG_WARN_COMMA = YES;- CLANG_WARN_CONSTANT_CONVERSION = YES;- CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;- CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;- CLANG_WARN_DOCUMENTATION_COMMENTS = YES;- CLANG_WARN_EMPTY_BODY = YES;- CLANG_WARN_ENUM_CONVERSION = YES;- CLANG_WARN_INFINITE_RECURSION = YES;- CLANG_WARN_INT_CONVERSION = YES;- CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;- CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;- CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;- CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;- CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES;- CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;- CLANG_WARN_STRICT_PROTOTYPES = YES;- CLANG_WARN_SUSPICIOUS_MOVE = YES;- CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;- CLANG_WARN_UNREACHABLE_CODE = YES;- CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;- CODEXBAR_POWER_HELPER_MANAGER_WRAPPER_NAME = "CodexBar Power Helper.app";- CODE_SIGN_INJECT_BASE_ENTITLEMENTS = NO;- COMPILATION_CACHE_ENABLE_CACHING = YES;- COPY_PHASE_STRIP = NO;- DEAD_CODE_STRIPPING = YES;- DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";- DEVELOPMENT_TEAM = 4KJ362VJW5;- ENABLE_NS_ASSERTIONS = NO;- ENABLE_STRICT_OBJC_MSGSEND = YES;- ENABLE_USER_SCRIPT_SANDBOXING = YES;- GCC_C_LANGUAGE_STANDARD = gnu17;- GCC_NO_COMMON_BLOCKS = YES;- GCC_WARN_64_TO_32_BIT_CONVERSION = YES;- GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;- GCC_WARN_UNDECLARED_SELECTOR = YES;- GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;- GCC_WARN_UNUSED_FUNCTION = YES;- GCC_WARN_UNUSED_VARIABLE = YES;- LOCALIZATION_PREFERS_STRING_CATALOGS = YES;- MACOSX_DEPLOYMENT_TARGET = 15.0;- MTL_ENABLE_DEBUG_INFO = NO;- MTL_FAST_MATH = YES;- SDKROOT = macosx;- STRING_CATALOG_GENERATE_SYMBOLS = YES;- SWIFT_COMPILATION_MODE = wholemodule;- SWIFT_VERSION = 6.0;- };- name = Release;- };- C4A0FDA12FD9302E000263A7 /* Debug configuration for PBXNativeTarget "CodexBar" */ = {- isa = XCBuildConfiguration;- buildSettings = {- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;- ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;- CODE_SIGN_ENTITLEMENTS = CodexBar/Resources/CodexBar.entitlements;- "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development";- CODE_SIGN_STYLE = Automatic;- COMBINE_HIDPI_IMAGES = YES;- ENABLE_APP_SANDBOX = NO;- ENABLE_HARDENED_RUNTIME = YES;- ENABLE_PREVIEWS = YES;- ENABLE_USER_SELECTED_FILES = NO;- EXCLUDED_SOURCE_FILE_NAMES = CodexBarPowerHelper.plist;- GENERATE_INFOPLIST_FILE = NO;- INFOPLIST_FILE = CodexBar/Resources/Info.plist;- INFOPLIST_KEY_CFBundleDisplayName = "CodexBar Debug";- LD_RUNPATH_SEARCH_PATHS = (- "$(inherited)",- "@executable_path/../Frameworks",- );- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.debug;- PRODUCT_NAME = "$(TARGET_NAME)";- SWIFT_APPROACHABLE_CONCURRENCY = YES;- SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;- SWIFT_EMIT_LOC_STRINGS = YES;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- WRAPPER_NAME = "CodexBar Debug.app";- };- name = Debug;- };- C4A0FDA22FD9302E000263A7 /* Release configuration for PBXNativeTarget "CodexBar" */ = {- isa = XCBuildConfiguration;- buildSettings = {- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;- ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;- CODE_SIGN_ENTITLEMENTS = CodexBar/Resources/CodexBar.entitlements;- CODE_SIGN_IDENTITY = "Apple Development";- CODE_SIGN_STYLE = Automatic;- COMBINE_HIDPI_IMAGES = YES;- ENABLE_APP_SANDBOX = NO;- ENABLE_HARDENED_RUNTIME = YES;- ENABLE_PREVIEWS = YES;- ENABLE_USER_SELECTED_FILES = NO;- EXCLUDED_SOURCE_FILE_NAMES = CodexBarPowerHelper.Debug.plist;- GENERATE_INFOPLIST_FILE = NO;- INFOPLIST_FILE = CodexBar/Resources/Info.plist;- INFOPLIST_KEY_CFBundleDisplayName = CodexBar;- LD_RUNPATH_SEARCH_PATHS = (- "$(inherited)",- "@executable_path/../Frameworks",- );- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar;- PRODUCT_NAME = "$(TARGET_NAME)";- PROVISIONING_PROFILE_SPECIFIER = "$(CODEXBAR_PROVISIONING_PROFILE_SPECIFIER)";- SWIFT_APPROACHABLE_CONCURRENCY = YES;- SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;- SWIFT_EMIT_LOC_STRINGS = YES;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- };- name = Release;- };- D10000000000000000000012 /* Debug configuration for PBXNativeTarget "CodexBarTests" */ = {- isa = XCBuildConfiguration;- buildSettings = {- CODE_SIGN_STYLE = Automatic;- ENABLE_APP_SANDBOX = NO;- GENERATE_INFOPLIST_FILE = YES;- LD_RUNPATH_SEARCH_PATHS = (- "$(inherited)",- "@loader_path/../Frameworks",- "@executable_path/../Frameworks",- );- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.tests;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_APPROACHABLE_CONCURRENCY = YES;- SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;- SWIFT_EMIT_LOC_STRINGS = NO;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- };- name = Debug;- };- D10000000000000000000013 /* Release configuration for PBXNativeTarget "CodexBarTests" */ = {- isa = XCBuildConfiguration;- buildSettings = {- CODE_SIGN_STYLE = Automatic;- ENABLE_APP_SANDBOX = NO;- GENERATE_INFOPLIST_FILE = YES;- LD_RUNPATH_SEARCH_PATHS = (- "$(inherited)",- "@loader_path/../Frameworks",- "@executable_path/../Frameworks",- );- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.tests;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_APPROACHABLE_CONCURRENCY = YES;- SWIFT_DEFAULT_ACTOR_ISOLATION = MainActor;- SWIFT_EMIT_LOC_STRINGS = NO;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- };- name = Release;- };- E10000000000000000000012 /* Debug configuration for PBXNativeTarget "CodexBarPowerHelperTests" */ = {- isa = XCBuildConfiguration;- buildSettings = {- CODE_SIGN_STYLE = Automatic;- ENABLE_APP_SANDBOX = NO;- GENERATE_INFOPLIST_FILE = YES;- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.helper.power.tests;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_EMIT_LOC_STRINGS = NO;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- };- name = Debug;- };- E10000000000000000000013 /* Release configuration for PBXNativeTarget "CodexBarPowerHelperTests" */ = {- isa = XCBuildConfiguration;- buildSettings = {- CODE_SIGN_STYLE = Automatic;- ENABLE_APP_SANDBOX = NO;- GENERATE_INFOPLIST_FILE = YES;- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.helper.power.tests;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_EMIT_LOC_STRINGS = NO;- SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY = YES;- };- name = Release;- };- F10000000000000000000012 /* Debug configuration for PBXNativeTarget "CodexBarPowerHelperManager" */ = {- isa = XCBuildConfiguration;- buildSettings = {- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;- CODE_SIGN_IDENTITY = "Apple Development";- CODE_SIGN_STYLE = Automatic;- ENABLE_APP_SANDBOX = NO;- ENABLE_HARDENED_RUNTIME = YES;- EXCLUDED_SOURCE_FILE_NAMES = CodexBarPowerHelper.plist;- GENERATE_INFOPLIST_FILE = YES;- INFOPLIST_KEY_CFBundleDisplayName = "CodexBar Power Helper Debug";- INFOPLIST_KEY_LSUIElement = YES;- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.helper.power.manager.debug;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_EMIT_LOC_STRINGS = NO;- WRAPPER_NAME = "$(CODEXBAR_POWER_HELPER_MANAGER_WRAPPER_NAME)";- };- name = Debug;- };- F10000000000000000000013 /* Release configuration for PBXNativeTarget "CodexBarPowerHelperManager" */ = {- isa = XCBuildConfiguration;- buildSettings = {- ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;- CODE_SIGN_IDENTITY = "Apple Development";- CODE_SIGN_STYLE = Automatic;- ENABLE_APP_SANDBOX = NO;- ENABLE_HARDENED_RUNTIME = YES;- EXCLUDED_SOURCE_FILE_NAMES = CodexBarPowerHelper.Debug.plist;- GENERATE_INFOPLIST_FILE = YES;- INFOPLIST_KEY_CFBundleDisplayName = "CodexBar Power Helper";- INFOPLIST_KEY_LSUIElement = YES;- PRODUCT_BUNDLE_IDENTIFIER = app.zabrian.codexbar.helper.power.manager;- PRODUCT_NAME = "$(TARGET_NAME)";- SKIP_INSTALL = YES;- SWIFT_EMIT_LOC_STRINGS = NO;- WRAPPER_NAME = "$(CODEXBAR_POWER_HELPER_MANAGER_WRAPPER_NAME)";- };- name = Release;- };-/* End XCBuildConfiguration section */--/* Begin XCConfigurationList section */- B10000000000000000000032 /* Build configuration list for PBXNativeTarget "CodexBarPowerHelper" */ = {- isa = XCConfigurationList;- buildConfigurations = (- B10000000000000000000033 /* Debug configuration for PBXNativeTarget "CodexBarPowerHelper" */,- A82900000000000000000001 /* DebugTest configuration for PBXNativeTarget "CodexBarPowerHelper" */,- B10000000000000000000034 /* Release configuration for PBXNativeTarget "CodexBarPowerHelper" */,- );- defaultConfigurationName = Release;- };- C4A0FD902FD9302E000263A7 /* Build configuration list for PBXProject "CodexBar" */ = {- isa = XCConfigurationList;- buildConfigurations = (- C4A0FD9E2FD9302E000263A7 /* Debug configuration for PBXProject "CodexBar" */,- A82900000000000000000002 /* DebugTest configuration for PBXProject "CodexBar" */,- C4A0FD9F2FD9302E000263A7 /* Release configuration for PBXProject "CodexBar" */,- );- defaultConfigurationName = Release;- };- C4A0FDA02FD9302E000263A7 /* Build configuration list for PBXNativeTarget "CodexBar" */ = {- isa = XCConfigurationList;- buildConfigurations = (- C4A0FDA12FD9302E000263A7 /* Debug configuration for PBXNativeTarget "CodexBar" */,- A82900000000000000000003 /* DebugTest configuration for PBXNativeTarget "CodexBar" */,- C4A0FDA22FD9302E000263A7 /* Release configuration for PBXNativeTarget "CodexBar" */,- );- defaultConfigurationName = Release;- };- D10000000000000000000011 /* Build configuration list for PBXNativeTarget "CodexBarTests" */ = {- isa = XCConfigurationList;- buildConfigurations = (- D10000000000000000000012 /* Debug configuration for PBXNativeTarget "CodexBarTests" */,- A82900000000000000000004 /* DebugTest configuration for PBXNativeTarget "CodexBarTests" */,- D10000000000000000000013 /* Release configuration for PBXNativeTarget "CodexBarTests" */,- );- defaultConfigurationName = Release;- };- E10000000000000000000011 /* Build configuration list for PBXNativeTarget "CodexBarPowerHelperTests" */ = {- isa = XCConfigurationList;- buildConfigurations = (- E10000000000000000000012 /* Debug configuration for PBXNativeTarget "CodexBarPowerHelperTests" */,- A82900000000000000000005 /* DebugTest configuration for PBXNativeTarget "CodexBarPowerHelperTests" */,- E10000000000000000000013 /* Release configuration for PBXNativeTarget "CodexBarPowerHelperTests" */,- );- defaultConfigurationName = Release;- };- F10000000000000000000011 /* Build configuration list for PBXNativeTarget "CodexBarPowerHelperManager" */ = {- isa = XCConfigurationList;- buildConfigurations = (- F10000000000000000000012 /* Debug configuration for PBXNativeTarget "CodexBarPowerHelperManager" */,- A82900000000000000000006 /* DebugTest configuration for PBXNativeTarget "CodexBarPowerHelperManager" */,- F10000000000000000000013 /* Release configuration for PBXNativeTarget "CodexBarPowerHelperManager" */,- );- defaultConfigurationName = Release;- };-/* End XCConfigurationList section */--/* Begin XCRemoteSwiftPackageReference section */- A91000000000000000000021 /* XCRemoteSwiftPackageReference "swift-tree-sitter" */ = {- isa = XCRemoteSwiftPackageReference;- repositoryURL = "https://github.com/tree-sitter/swift-tree-sitter";- requirement = {- kind = upToNextMinorVersion;- minimumVersion = 0.25.0;- };- };- A91000000000000000000022 /* XCRemoteSwiftPackageReference "tree-sitter-bash" */ = {- isa = XCRemoteSwiftPackageReference;- repositoryURL = "https://github.com/tree-sitter/tree-sitter-bash";- requirement = {- kind = upToNextMinorVersion;- minimumVersion = 0.25.1;- };- };- C42A52EF2FDACDEC004A2B53 /* XCRemoteSwiftPackageReference "Sparkle" */ = {- isa = XCRemoteSwiftPackageReference;- repositoryURL = "https://github.com/sparkle-project/Sparkle";- requirement = {- kind = upToNextMajorVersion;- minimumVersion = 2.10.1;- };- };-/* End XCRemoteSwiftPackageReference section */--/* Begin XCSwiftPackageProductDependency section */- A91000000000000000000011 /* SwiftTreeSitter */ = {- isa = XCSwiftPackageProductDependency;- package = A91000000000000000000021 /* XCRemoteSwiftPackageReference "swift-tree-sitter" */;- productName = SwiftTreeSitter;- };- A91000000000000000000012 /* TreeSitterBash */ = {- isa = XCSwiftPackageProductDependency;- package = A91000000000000000000022 /* XCRemoteSwiftPackageReference "tree-sitter-bash" */;- productName = TreeSitterBash;- };- C42A52F02FDACDEC004A2B53 /* Sparkle */ = {- isa = XCSwiftPackageProductDependency;- package = C42A52EF2FDACDEC004A2B53 /* XCRemoteSwiftPackageReference "Sparkle" */;- productName = Sparkle;- };-/* End XCSwiftPackageProductDependency section */- };- rootObject = C4A0FD8D2FD9302E000263A7 /* Project object */;-}diff --git a/CodexBar.xcodeproj/project.xcproj b/CodexBar.xcodeproj/project.xcprojnew file mode 100644index 0000000..fec6eae--- /dev/null+++ b/CodexBar.xcodeproj/project.xcproj@@ -0,0 +1,453 @@+{+ "default-configuration": "Release",+ "configurations": [+ { "name": "Debug", "file": "Config/Version.xcconfig" },+ { "name": "DebugTest", "file": "Config/Version.xcconfig" },+ { "name": "Release", "file": "Config/Version.xcconfig" },+ ],+ "localizations": {+ "development": "zh-Hans",+ "supported": [+ "Base",+ "en",+ ],+ },+ "packages": [+ {+ "kind": "remote",+ "repository": "https://github.com/tree-sitter/swift-tree-sitter",+ "version": {+ "up-to-next-minor-version": "0.25.0",+ },+ }, {+ "kind": "remote",+ "repository": "https://github.com/tree-sitter/tree-sitter-bash",+ "version": {+ "up-to-next-minor-version": "0.25.1",+ },+ }, {+ "kind": "remote",+ "repository": "https://github.com/sparkle-project/Sparkle",+ "version": {+ "up-to-next-major-version": "2.10.1",+ },+ },+ ],+ "files": [+ {+ "kind": "folder",+ "path": "CodexBar",+ "target-membership": [+ "CodexBar",+ "CodexBarTests",+ ],+ "membership-exceptions": [+ {+ "target": "CodexBarTests",+ "exclusions": [+ "App/CodexBarMain.swift",+ "Resources/AppIcon.icon",+ "Resources/Info.plist",+ ],+ }, {+ "target": "CodexBar",+ "exclusions": [+ "Resources/Info.plist",+ ],+ },+ ],+ }, {+ "kind": "folder",+ "path": "CodexBarHelper",+ "membership-exceptions": [+ {+ "target": "CodexBarPowerHelperManager",+ "inclusions": [+ "Power/Manager/PowerHelperManagerMain.swift",+ "Power/Manager/Resources/AppIcon.icon",+ "Power/Shared/CodexBarPowerHelperXPC.swift",+ "Power/Shared/PowerHelperManagement.swift",+ ],+ }, {+ "build-phase": "CodexBarPowerHelperManager/copy/Copy LaunchDaemons",+ "inclusions": [+ "Power/Daemon/CodexBarPowerHelper.plist",+ "Power/Daemon/CodexBarPowerHelperDebug.plist",+ ],+ }, {+ "target": "CodexBarPowerHelperTests",+ "inclusions": [+ "Power/Daemon/OwnershipStore.swift",+ "Power/Daemon/Pmset.swift",+ "Power/Daemon/PowerHelperError.swift",+ "Power/Daemon/PowerHelperRuntime.swift",+ "Power/Shared/CodexBarPowerHelperXPC.swift",+ "Power/Shared/PowerHelperManagement.swift",+ ],+ }, {+ "target": "CodexBarTests",+ "inclusions": [+ "Power/Shared/CodexBarPowerHelperXPC.swift",+ "Power/Shared/PowerHelperManagement.swift",+ ],+ }, {+ "target": "CodexBar",+ "inclusions": [+ "Power/Shared/CodexBarPowerHelperXPC.swift",+ "Power/Shared/PowerHelperManagement.swift",+ ],+ }, {+ "target": "CodexBarPowerHelper",+ "inclusions": [+ "Power/Daemon/OwnershipStore.swift",+ "Power/Daemon/Pmset.swift",+ "Power/Daemon/PowerHelperError.swift",+ "Power/Daemon/PowerHelperRuntime.swift",+ "Power/Daemon/main.swift",+ "Power/Shared/CodexBarPowerHelperXPC.swift",+ "Power/Shared/PowerHelperManagement.swift",+ ],+ },+ ],+ }, {+ "kind": "folder",+ "path": "Tests",+ "target-membership": [+ "CodexBarTests",+ ],+ "membership-exceptions": [+ {+ "target": "CodexBarPowerHelperTests",+ "inclusions": [+ "Helpers/Power/PowerHelperSleepTests.swift",+ "Helpers/Power/PowerHelperTestSupport.swift",+ "Helpers/Power/PowerHelperUpdateTests.swift",+ ],+ }, {+ "target": "CodexBarTests",+ "exclusions": [+ "Helpers/Power/PowerHelperSleepTests.swift",+ "Helpers/Power/PowerHelperTestSupport.swift",+ "Helpers/Power/PowerHelperUpdateTests.swift",+ ],+ },+ ],+ },+ { "kind": "folder", "path": "Shared", "target-membership": [ "CodexBar", "CodexBarPowerHelper", "CodexBarPowerHelperManager", "CodexBarPowerHelperTests", "CodexBarTests" ] },+ {+ "kind": "group",+ "path": "Config",+ "children": [+ { "path": "Version.xcconfig" },+ { "path": "BuildNumber.xcconfig" },+ { "path": "Unit.xctestplan" },+ { "path": "Integration.xctestplan" },+ { "path": "Standard.xctestplan" },+ { "path": "Sanitizers.xctestplan" },+ ],+ }, {+ "kind": "group",+ "name": "Products",+ "children": [+ { "path": "<PRODUCTS>/CodexBar Debug.app", "id": "C4A0FD952FD9302E000263A7", "type": "wrapper.application", "index": false },+ { "path": "<PRODUCTS>/CodexBarTests.xctest", "id": "D10000000000000000000002", "type": "wrapper.cfbundle", "index": false },+ { "path": "<PRODUCTS>/CodexBarPowerHelperTests.xctest", "id": "E10000000000000000000002", "type": "wrapper.cfbundle", "index": false },+ { "path": "<PRODUCTS>/CodexBarPowerHelper", "id": "B10000000000000000000014", "type": "compiled.mach-o.executable", "index": false, "target-membership": [ { "build-phase": "CodexBarPowerHelperManager/copy/Embed CodexBar Power Helper", "code-sign-on-copy": true } ] },+ { "path": "<PRODUCTS>/CodexBar Power Helper Debug.app", "id": "F10000000000000000000002", "type": "wrapper.application", "index": false, "target-membership": [ "CodexBar/copy/Embed Power Helper Manager" ] },+ { "path": "<PRODUCTS>/CodexBar Power Helper.app", "type": "wrapper.application", "index": false, "target-membership": [ "CodexBar/copy/Embed Power Helper Manager" ] },+ ],+ },+ ],+ "targets": [+ {+ "name": "CodexBarPowerHelperManager",+ "id": "F10000000000000000000010",+ "product": "Products/CodexBar Power Helper Debug.app",+ "product-type": "application",+ "dependencies": [+ "CodexBarPowerHelper",+ ],+ "build-phases": [+ "compile-sources",+ "frameworks",+ "resources",+ {+ "kind": "copy",+ "name": "Embed CodexBar Power Helper",+ "bundle-base-path": "root",+ "relative-path": "Contents/Helpers",+ }, {+ "kind": "copy",+ "name": "Copy LaunchDaemons",+ "bundle-base-path": "root",+ "relative-path": "Contents/Library/LaunchDaemons",+ },+ ],+ "build-settings": {+ "ASSETCATALOG_COMPILER_APPICON_NAME": "AppIcon",+ "CODE_SIGN_IDENTITY": "Apple Development",+ "CODE_SIGN_STYLE": "Automatic",+ "ENABLE_APP_SANDBOX": "NO",+ "ENABLE_HARDENED_RUNTIME": "YES",+ "EXCLUDED_SOURCE_FILE_NAMES[config=DebugTest]": "CodexBarPowerHelper.plist",+ "EXCLUDED_SOURCE_FILE_NAMES[config=Debug]": "CodexBarPowerHelper.plist",+ "EXCLUDED_SOURCE_FILE_NAMES[config=Release]": "CodexBarPowerHelperDebug.plist",+ "GENERATE_INFOPLIST_FILE": "YES",+ "INFOPLIST_KEY_CFBundleDisplayName[config=DebugTest]": "CodexBar Power Helper Debug",+ "INFOPLIST_KEY_CFBundleDisplayName[config=Debug]": "CodexBar Power Helper Debug",+ "INFOPLIST_KEY_CFBundleDisplayName[config=Release]": "CodexBar Power Helper",+ "INFOPLIST_KEY_LSUIElement": "YES",+ "PRODUCT_BUNDLE_IDENTIFIER[config=DebugTest]": "app.zabrian.codexbar.helper.power.manager.debug",+ "PRODUCT_BUNDLE_IDENTIFIER[config=Debug]": "app.zabrian.codexbar.helper.power.manager.debug",+ "PRODUCT_BUNDLE_IDENTIFIER[config=Release]": "app.zabrian.codexbar.helper.power.manager",+ "PRODUCT_NAME": "$(TARGET_NAME)",+ "SKIP_INSTALL": "YES",+ "SWIFT_EMIT_LOC_STRINGS": "NO",+ "WRAPPER_NAME[config=DebugTest]": "CodexBar Power Helper Debug.app",+ "WRAPPER_NAME[config=Debug]": "CodexBar Power Helper Debug.app",+ "WRAPPER_NAME[config=Release]": "CodexBar Power Helper.app",+ },+ }, {+ "name": "CodexBarPowerHelperTests",+ "id": "E10000000000000000000010",+ "product": "Products/CodexBarPowerHelperTests.xctest",+ "product-type": "bundle.unit-test",+ "build-phases": [+ "compile-sources",+ "frameworks",+ ],+ "build-settings": {+ "CODE_SIGN_STYLE": "Automatic",+ "ENABLE_APP_SANDBOX": "NO",+ "GENERATE_INFOPLIST_FILE": "YES",+ "PRODUCT_BUNDLE_IDENTIFIER": "app.zabrian.codexbar.helper.power.tests",+ "PRODUCT_NAME": "$(TARGET_NAME)",+ "SKIP_INSTALL": "YES",+ "SWIFT_EMIT_LOC_STRINGS": "NO",+ "SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY": "YES",+ },+ }, {+ "name": "CodexBarTests",+ "id": "D10000000000000000000010",+ "product": "Products/CodexBarTests.xctest",+ "product-type": "bundle.unit-test",+ "build-phases": [+ "compile-sources",+ "frameworks",+ "resources",+ ],+ "package-product-members": [+ {+ "package": "Sparkle",+ "product-name": "Sparkle",+ "build-phase": { "build-phase": "frameworks" },+ }, {+ "package": "swift-tree-sitter",+ "product-name": "SwiftTreeSitter",+ "build-phase": { "build-phase": "frameworks" },+ }, {+ "package": "tree-sitter-bash",+ "product-name": "TreeSitterBash",+ "build-phase": { "build-phase": "frameworks" },+ },+ ],+ "build-settings": {+ "CODE_SIGN_STYLE": "Automatic",+ "ENABLE_APP_SANDBOX": "NO",+ "GENERATE_INFOPLIST_FILE": "YES",+ "LD_RUNPATH_SEARCH_PATHS": [+ "$(inherited)",+ "@loader_path/../Frameworks",+ "@executable_path/../Frameworks",+ ],+ "PRODUCT_BUNDLE_IDENTIFIER": "app.zabrian.codexbar.tests",+ "PRODUCT_NAME": "$(TARGET_NAME)",+ "SKIP_INSTALL": "YES",+ "SWIFT_APPROACHABLE_CONCURRENCY": "YES",+ "SWIFT_DEFAULT_ACTOR_ISOLATION": "MainActor",+ "SWIFT_EMIT_LOC_STRINGS": "NO",+ "SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY": "YES",+ },+ }, {+ "name": "CodexBar",+ "id": "C4A0FD942FD9302E000263A7",+ "product": "Products/CodexBar Debug.app",+ "product-type": "application",+ "dependencies": [+ "CodexBarPowerHelperManager",+ ],+ "build-phases": [+ "compile-sources",+ "frameworks",+ "resources",+ {+ "kind": "copy",+ "name": "Embed Power Helper Manager",+ "bundle-base-path": "root",+ "relative-path": "Contents/Helpers",+ },+ ],+ "package-product-members": [+ {+ "package": "Sparkle",+ "product-name": "Sparkle",+ "build-phase": { "build-phase": "frameworks" },+ }, {+ "package": "swift-tree-sitter",+ "product-name": "SwiftTreeSitter",+ "build-phase": { "build-phase": "frameworks" },+ }, {+ "package": "tree-sitter-bash",+ "product-name": "TreeSitterBash",+ "build-phase": { "build-phase": "frameworks" },+ },+ ],+ "build-settings": {+ "ASSETCATALOG_COMPILER_APPICON_NAME": "AppIcon",+ "ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME": "AccentColor",+ "CODE_SIGN_ENTITLEMENTS": "CodexBar/Resources/CodexBar.entitlements",+ "CODE_SIGN_IDENTITY[config=DebugTest][sdk=macosx*]": "Apple Development",+ "CODE_SIGN_IDENTITY[config=Debug][sdk=macosx*]": "Apple Development",+ "CODE_SIGN_IDENTITY[config=Release]": "Apple Development",+ "CODE_SIGN_STYLE": "Automatic",+ "COMBINE_HIDPI_IMAGES": "YES",+ "ENABLE_APP_SANDBOX": "NO",+ "ENABLE_HARDENED_RUNTIME": "YES",+ "ENABLE_PREVIEWS": "YES",+ "ENABLE_USER_SELECTED_FILES": "NO",+ "EXCLUDED_SOURCE_FILE_NAMES[config=DebugTest]": "$(inherited) CodexBarPowerHelper.plist \"CodexBar Power Helper.app\"",+ "EXCLUDED_SOURCE_FILE_NAMES[config=Debug]": "$(inherited) CodexBarPowerHelper.plist \"CodexBar Power Helper.app\"",+ "EXCLUDED_SOURCE_FILE_NAMES[config=Release]": "$(inherited) CodexBarPowerHelperDebug.plist \"CodexBar Power Helper Debug.app\"",+ "GENERATE_INFOPLIST_FILE": "NO",+ "INFOPLIST_FILE": "CodexBar/Resources/Info.plist",+ "INFOPLIST_KEY_CFBundleDisplayName[config=DebugTest]": "CodexBar Debug",+ "INFOPLIST_KEY_CFBundleDisplayName[config=Debug]": "CodexBar Debug",+ "INFOPLIST_KEY_CFBundleDisplayName[config=Release]": "CodexBar",+ "INFOPLIST_KEY_LSApplicationCategoryType": "public.app-category.developer-tools",+ "LD_RUNPATH_SEARCH_PATHS": [+ "$(inherited)",+ "@executable_path/../Frameworks",+ ],+ "PRODUCT_BUNDLE_IDENTIFIER[config=DebugTest]": "app.zabrian.codexbar.debug",+ "PRODUCT_BUNDLE_IDENTIFIER[config=Debug]": "app.zabrian.codexbar.debug",+ "PRODUCT_BUNDLE_IDENTIFIER[config=Release]": "app.zabrian.codexbar",+ "PRODUCT_NAME": "$(TARGET_NAME)",+ "PROVISIONING_PROFILE_SPECIFIER[config=Release]": "$(CODEXBAR_PROVISIONING_PROFILE_SPECIFIER)",+ "SWIFT_APPROACHABLE_CONCURRENCY": "YES",+ "SWIFT_DEFAULT_ACTOR_ISOLATION": "MainActor",+ "SWIFT_EMIT_LOC_STRINGS": "YES",+ "SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY": "YES",+ "WRAPPER_NAME[config=DebugTest]": "CodexBar Debug.app",+ "WRAPPER_NAME[config=Debug]": "CodexBar Debug.app",+ },+ }, {+ "name": "CodexBarPowerHelper",+ "id": "B10000000000000000000031",+ "product": "Products/CodexBarPowerHelper",+ "product-type": "tool",+ "build-phases": [+ "compile-sources",+ "frameworks",+ ],+ "build-settings": {+ "CODE_SIGN_IDENTITY[sdk=macosx*]": "Apple Development",+ "CODE_SIGN_STYLE": "Automatic",+ "CREATE_INFOPLIST_SECTION_IN_BINARY": "YES",+ "ENABLE_APP_SANDBOX": "NO",+ "ENABLE_HARDENED_RUNTIME": "YES",+ "GENERATE_INFOPLIST_FILE": "YES",+ "PRODUCT_BUNDLE_IDENTIFIER[config=DebugTest]": "app.zabrian.codexbar.helper.power.debug",+ "PRODUCT_BUNDLE_IDENTIFIER[config=Debug]": "app.zabrian.codexbar.helper.power.debug",+ "PRODUCT_BUNDLE_IDENTIFIER[config=Release]": "app.zabrian.codexbar.helper.power",+ "PRODUCT_NAME": "$(TARGET_NAME)",+ "SKIP_INSTALL": "YES",+ "SWIFT_UPCOMING_FEATURE_MEMBER_IMPORT_VISIBILITY": "YES",+ },+ },+ ],+ "build-settings": {+ "ALWAYS_SEARCH_USER_PATHS": "NO",+ "ASSETCATALOG_COMPILER_GENERATE_SWIFT_ASSET_SYMBOL_EXTENSIONS": "YES",+ "CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED": "YES",+ "CLANG_ANALYZER_NONNULL": "YES",+ "CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION": "YES_AGGRESSIVE",+ "CLANG_CXX_LANGUAGE_STANDARD": "gnu++20",+ "CLANG_ENABLE_MODULES": "YES",+ "CLANG_ENABLE_OBJC_ARC": "YES",+ "CLANG_ENABLE_OBJC_WEAK": "YES",+ "CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING": "YES",+ "CLANG_WARN_BOOL_CONVERSION": "YES",+ "CLANG_WARN_COMMA": "YES",+ "CLANG_WARN_CONSTANT_CONVERSION": "YES",+ "CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS": "YES",+ "CLANG_WARN_DIRECT_OBJC_ISA_USAGE": "YES_ERROR",+ "CLANG_WARN_DOCUMENTATION_COMMENTS": "YES",+ "CLANG_WARN_EMPTY_BODY": "YES",+ "CLANG_WARN_ENUM_CONVERSION": "YES",+ "CLANG_WARN_INFINITE_RECURSION": "YES",+ "CLANG_WARN_INT_CONVERSION": "YES",+ "CLANG_WARN_NON_LITERAL_NULL_CONVERSION": "YES",+ "CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF": "YES",+ "CLANG_WARN_OBJC_LITERAL_CONVERSION": "YES",+ "CLANG_WARN_OBJC_ROOT_CLASS": "YES_ERROR",+ "CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER": "YES",+ "CLANG_WARN_RANGE_LOOP_ANALYSIS": "YES",+ "CLANG_WARN_STRICT_PROTOTYPES": "YES",+ "CLANG_WARN_SUSPICIOUS_MOVE": "YES",+ "CLANG_WARN_UNGUARDED_AVAILABILITY": "YES_AGGRESSIVE",+ "CLANG_WARN_UNREACHABLE_CODE": "YES",+ "CLANG_WARN__DUPLICATE_METHOD_MATCH": "YES",+ "CODEXBAR_AUTO_INCREMENT_BUILD_NUMBER[config=DebugTest]": "NO",+ "CODE_SIGN_INJECT_BASE_ENTITLEMENTS[config=Release]": "NO",+ "COMPILATION_CACHE_ENABLE_CACHING": "YES",+ "COPY_PHASE_STRIP": "NO",+ "DEAD_CODE_STRIPPING": "YES",+ "DEBUG_INFORMATION_FORMAT[config=DebugTest]": "dwarf",+ "DEBUG_INFORMATION_FORMAT[config=Debug]": "dwarf",+ "DEBUG_INFORMATION_FORMAT[config=Release]": "dwarf-with-dsym",+ "DEVELOPMENT_TEAM": "4KJ362VJW5",+ "ENABLE_NS_ASSERTIONS[config=Release]": "NO",+ "ENABLE_STRICT_OBJC_MSGSEND": "YES",+ "ENABLE_TESTABILITY[config=DebugTest]": "YES",+ "ENABLE_TESTABILITY[config=Debug]": "YES",+ "ENABLE_USER_SCRIPT_SANDBOXING": "YES",+ "GCC_C_LANGUAGE_STANDARD": "gnu17",+ "GCC_DYNAMIC_NO_PIC[config=DebugTest]": "NO",+ "GCC_DYNAMIC_NO_PIC[config=Debug]": "NO",+ "GCC_NO_COMMON_BLOCKS": "YES",+ "GCC_OPTIMIZATION_LEVEL[config=DebugTest]": "0",+ "GCC_OPTIMIZATION_LEVEL[config=Debug]": "0",+ "GCC_PREPROCESSOR_DEFINITIONS[config=DebugTest]": [+ "DEBUG=1",+ "$(inherited)",+ ],+ "GCC_PREPROCESSOR_DEFINITIONS[config=Debug]": [+ "DEBUG=1",+ "$(inherited)",+ ],+ "GCC_WARN_64_TO_32_BIT_CONVERSION": "YES",+ "GCC_WARN_ABOUT_RETURN_TYPE": "YES_ERROR",+ "GCC_WARN_UNDECLARED_SELECTOR": "YES",+ "GCC_WARN_UNINITIALIZED_AUTOS": "YES_AGGRESSIVE",+ "GCC_WARN_UNUSED_FUNCTION": "YES",+ "GCC_WARN_UNUSED_VARIABLE": "YES",+ "LOCALIZATION_PREFERS_STRING_CATALOGS": "YES",+ "MACOSX_DEPLOYMENT_TARGET": "15.0",+ "MTL_ENABLE_DEBUG_INFO[config=DebugTest]": "INCLUDE_SOURCE",+ "MTL_ENABLE_DEBUG_INFO[config=Debug]": "INCLUDE_SOURCE",+ "MTL_ENABLE_DEBUG_INFO[config=Release]": "NO",+ "MTL_FAST_MATH": "YES",+ "ONLY_ACTIVE_ARCH[config=DebugTest]": "YES",+ "ONLY_ACTIVE_ARCH[config=Debug]": "YES",+ "SDKROOT": "macosx",+ "STRING_CATALOG_GENERATE_SYMBOLS": "YES",+ "SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=DebugTest]": "DEBUG $(inherited)",+ "SWIFT_ACTIVE_COMPILATION_CONDITIONS[config=Debug]": "DEBUG $(inherited)",+ "SWIFT_COMPILATION_MODE[config=Release]": "wholemodule",+ "SWIFT_OPTIMIZATION_LEVEL[config=DebugTest]": "-Onone",+ "SWIFT_OPTIMIZATION_LEVEL[config=Debug]": "-Onone",+ "SWIFT_VERSION": "6.0",+ },+ "last-upgrade": "27.0",+ "last-swift-update": "26.5",+}diff --git a/CodexBar/Services/CodexStatus/CodexStatusViewModel.swift b/CodexBar/Services/CodexStatus/CodexStatusViewModel.swiftindex 26546f4..f42580d 100644--- a/CodexBar/Services/CodexStatus/CodexStatusViewModel.swift+++ b/CodexBar/Services/CodexStatus/CodexStatusViewModel.swift@@ -394,22 +394,19 @@ final class CodexStatusViewModel: ObservableObject {/// 首条通知固定合并截止时间, 后续通知不能无限延后刷新nonisolated struct AccountNotificationSchedule {private(set) var readyAt: ContinuousClock.Instant?- private var pending: AccountChange?private var lastRefreshStartedAt: ContinuousClock.Instant?mutating func receive(_ change: AccountChange, at now: ContinuousClock.Instant) {let deadline = now.advanced(by: .seconds(1))if change == .account {readyAt = min(readyAt ?? deadline, deadline)- } else if pending == nil {+ } else if readyAt == nil {readyAt = max(deadline, lastRefreshStartedAt?.advanced(by: .seconds(10)) ?? deadline)}- pending = change.merging(pending)}mutating func didStartRefresh(at now: ContinuousClock.Instant) {readyAt = nil- pending = nillastRefreshStartedAt = now}}diff --git a/CodexBarHelper/Power/Daemon/CodexBarPowerHelper.Debug.plist b/CodexBarHelper/Power/Daemon/CodexBarPowerHelperDebug.plistsimilarity index 100%rename from CodexBarHelper/Power/Daemon/CodexBarPowerHelper.Debug.plistrename to CodexBarHelper/Power/Daemon/CodexBarPowerHelperDebug.plistdiff --git a/CodexBarHelper/Power/Shared/CodexBarPowerHelperXPC.swift b/CodexBarHelper/Power/Shared/CodexBarPowerHelperXPC.swiftindex 6b0647f..f65a93f 100644--- a/CodexBarHelper/Power/Shared/CodexBarPowerHelperXPC.swift+++ b/CodexBarHelper/Power/Shared/CodexBarPowerHelperXPC.swift@@ -4,7 +4,7 @@ nonisolated enum CodexBarPowerHelperIPC {#if DEBUGstatic let clientAppBundleIdentifier = "app.zabrian.codexbar.debug"static let serviceIdentifier = "app.zabrian.codexbar.helper.power.debug"- static let daemonPlistName = "CodexBarPowerHelper.Debug.plist"+ static let daemonPlistName = "CodexBarPowerHelperDebug.plist"#elsestatic let clientAppBundleIdentifier = "app.zabrian.codexbar"static let serviceIdentifier = "app.zabrian.codexbar.helper.power"diff --git a/Config/BuildNumber.xcconfig b/Config/BuildNumber.xcconfigindex 7b51dc2..4a8745a 100644--- a/Config/BuildNumber.xcconfig+++ b/Config/BuildNumber.xcconfig@@ -1,3 +1,3 @@// 请勿手动修改// Do not modify manually-CURRENT_PROJECT_VERSION = 257\ No newline at end of file+CURRENT_PROJECT_VERSION = 264\ No newline at end of filediff --git a/Scripts/build.sh b/Scripts/build.shindex 772eb55..b5128aa 100755--- a/Scripts/build.sh+++ b/Scripts/build.sh@@ -62,155 +62,55 @@ USAGE}parse_args() {+ local option=""+ local value=""+ local shift_count=0+while [[ "$#" -gt 0 ]]; docase "$1" in-h|--help)usageexit 0;;- --project)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: --project requires a value" >&2- usage- exit 1- fi- XCODE_PROJECT="$2"- shift 2- ;;- --project=*)- XCODE_PROJECT="${1#*=}"- if [[ -z "${XCODE_PROJECT}" ]]; then- echo "error: --project requires a value" >&2- usage- exit 1- fi- shift- ;;- --scheme)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: --scheme requires a value" >&2- usage- exit 1- fi- XCODE_SCHEME="$2"- shift 2- ;;- --scheme=*)- XCODE_SCHEME="${1#*=}"- if [[ -z "${XCODE_SCHEME}" ]]; then- echo "error: --scheme requires a value" >&2- usage- exit 1+ --project|--project=*|\+ --scheme|--scheme=*|\+ --configuration|--configuration=*|\+ --build-dir|--build-dir=*|\+ --derived-data|--derived-data=*|\+ --archive-path|--archive-path=*|\+ --export-options|--export-options=*|\+ --team-id|--team-id=*|\+ --notary-profile|--notary-profile=*|\+ --apple-id|--apple-id=*|\+ --notary-password|--notary-password=*|\+ --app-specific-password|--app-specific-password=*)+ option="${1%%=*}"+ if [[ "$1" == *=* ]]; then+ value="${1#*=}"+ shift_count=1+ else+ value="${2-}"+ shift_count=2fi- shift- ;;- --configuration)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: --configuration requires a value" >&2+ if [[ -z "${value}" ]]; then+ echo "error: ${option} requires a value" >&2usageexit 1fi- CONFIGURATION="$2"- shift 2- ;;- --configuration=*)- CONFIGURATION="${1#*=}"- if [[ -z "${CONFIGURATION}" ]]; then- echo "error: --configuration requires a value" >&2- usage- exit 1- fi- shift- ;;- --build-dir)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: --build-dir requires a value" >&2- usage- exit 1- fi- BUILD_DIR="$2"- shift 2- ;;- --build-dir=*)- BUILD_DIR="${1#*=}"- if [[ -z "${BUILD_DIR}" ]]; then- echo "error: --build-dir requires a value" >&2- usage- exit 1- fi- shift- ;;- --derived-data)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: --derived-data requires a value" >&2- usage- exit 1- fi- DERIVED_DATA_PATH="$2"- shift 2- ;;- --derived-data=*)- DERIVED_DATA_PATH="${1#*=}"- if [[ -z "${DERIVED_DATA_PATH}" ]]; then- echo "error: --derived-data requires a value" >&2- usage- exit 1- fi- shift- ;;- --archive-path)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: --archive-path requires a value" >&2- usage- exit 1- fi- ARCHIVE_PATH="$2"- shift 2- ;;- --archive-path=*)- ARCHIVE_PATH="${1#*=}"- if [[ -z "${ARCHIVE_PATH}" ]]; then- echo "error: --archive-path requires a value" >&2- usage- exit 1- fi- shift- ;;- --export-options)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: --export-options requires a value" >&2- usage- exit 1- fi- EXPORT_OPTIONS_PLIST="$2"- shift 2- ;;- --export-options=*)- EXPORT_OPTIONS_PLIST="${1#*=}"- if [[ -z "${EXPORT_OPTIONS_PLIST}" ]]; then- echo "error: --export-options requires a value" >&2- usage- exit 1- fi- shift- ;;- --team-id)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: --team-id requires a value" >&2- usage- exit 1- fi- TEAM_ID="$2"- shift 2- ;;- --team-id=*)- TEAM_ID="${1#*=}"- if [[ -z "${TEAM_ID}" ]]; then- echo "error: --team-id requires a value" >&2- usage- exit 1- fi- shift+ case "${option}" in+ --project) XCODE_PROJECT="${value}" ;;+ --scheme) XCODE_SCHEME="${value}" ;;+ --configuration) CONFIGURATION="${value}" ;;+ --build-dir) BUILD_DIR="${value}" ;;+ --derived-data) DERIVED_DATA_PATH="${value}" ;;+ --archive-path) ARCHIVE_PATH="${value}" ;;+ --export-options) EXPORT_OPTIONS_PLIST="${value}" ;;+ --team-id) TEAM_ID="${value}" ;;+ --notary-profile) NOTARYTOOL_PROFILE="${value}" ;;+ --apple-id) APPLE_ID="${value}" ;;+ --notary-password|--app-specific-password) NOTARYTOOL_PASSWORD="${value}" ;;+ esac+ shift "${shift_count}";;--allow-provisioning-updates)ALLOW_PROVISIONING_UPDATES="1"@@ -220,60 +120,6 @@ parse_args() {ALLOW_PROVISIONING_UPDATES="0"shift;;- --notary-profile)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: --notary-profile requires a value" >&2- usage- exit 1- fi- NOTARYTOOL_PROFILE="$2"- shift 2- ;;- --notary-profile=*)- NOTARYTOOL_PROFILE="${1#*=}"- if [[ -z "${NOTARYTOOL_PROFILE}" ]]; then- echo "error: --notary-profile requires a value" >&2- usage- exit 1- fi- shift- ;;- --apple-id)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: --apple-id requires a value" >&2- usage- exit 1- fi- APPLE_ID="$2"- shift 2- ;;- --apple-id=*)- APPLE_ID="${1#*=}"- if [[ -z "${APPLE_ID}" ]]; then- echo "error: --apple-id requires a value" >&2- usage- exit 1- fi- shift- ;;- --notary-password|--app-specific-password)- if [[ "$#" -lt 2 || -z "$2" ]]; then- echo "error: $1 requires a value" >&2- usage- exit 1- fi- NOTARYTOOL_PASSWORD="$2"- shift 2- ;;- --notary-password=*|--app-specific-password=*)- NOTARYTOOL_PASSWORD="${1#*=}"- if [[ -z "${NOTARYTOOL_PASSWORD}" ]]; then- echo "error: ${1%%=*} requires a value" >&2- usage- exit 1- fi- shift- ;;--skip-notarization)SKIP_NOTARIZATION="1"shiftdiff --git a/Scripts/cleanup.swift b/Scripts/cleanup.swiftindex dc2261d..28c304c 100755--- a/Scripts/cleanup.swift+++ b/Scripts/cleanup.swift@@ -71,7 +71,7 @@ private struct CleanupTarget {case .release:"CodexBarPowerHelper.plist"case .debug:- "CodexBarPowerHelper.Debug.plist"+ "CodexBarPowerHelperDebug.plist"}}diff --git a/Scripts/lib/validate.sh b/Scripts/lib/validate.shindex 7e7a71b..6693b83 100644--- a/Scripts/lib/validate.sh+++ b/Scripts/lib/validate.sh@@ -69,7 +69,7 @@ validate_final_app() {local daemon_plist_name="CodexBarPowerHelper.plist"if [[ "${CONFIGURATION}" == "Debug" ]]; thenmanager_name="CodexBar Power Helper Debug"- daemon_plist_name="CodexBarPowerHelper.Debug.plist"+ daemon_plist_name="CodexBarPowerHelperDebug.plist"filocal manager_path="${contents_path}/Helpers/${manager_name}.app"local manager_executable="${manager_path}/Contents/MacOS/CodexBarPowerHelperManager"