From cf15f175886fb7cf4bb6681fa20dc42762b5732a Mon Sep 17 00:00:00 2001 From: yichengchen Date: Fri, 10 May 2019 22:12:53 +0800 Subject: [PATCH] Fix ci release build --- ClashX.xcodeproj/project.pbxproj | 4 ++-- ClashX/General/Managers/ConfigManager.swift | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ClashX.xcodeproj/project.pbxproj b/ClashX.xcodeproj/project.pbxproj index 2b11067..79de3eb 100644 --- a/ClashX.xcodeproj/project.pbxproj +++ b/ClashX.xcodeproj/project.pbxproj @@ -725,7 +725,7 @@ buildSettings = { CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = ClashXLaunchHelper/ClashXLaunchHelper.entitlements; - CODE_SIGN_IDENTITY = "Mac Developer"; + CODE_SIGN_IDENTITY = "Developer ID Application"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; DEVELOPMENT_TEAM = MEWHFZ92DY; @@ -894,7 +894,7 @@ baseConfigurationReference = A1485BCE642059532D01B8BA /* Pods-ClashX.release.xcconfig */; buildSettings = { CLANG_ENABLE_MODULES = YES; - CODE_SIGN_IDENTITY = "Mac Developer"; + CODE_SIGN_IDENTITY = "Developer ID Application"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; DEVELOPMENT_TEAM = MEWHFZ92DY; diff --git a/ClashX/General/Managers/ConfigManager.swift b/ClashX/General/Managers/ConfigManager.swift index 94006dc..ee1206c 100644 --- a/ClashX/General/Managers/ConfigManager.swift +++ b/ClashX/General/Managers/ConfigManager.swift @@ -22,7 +22,7 @@ class ConfigManager { UserDefaults.standard.rx.observe(Bool.self, "kSDisableShowCurrentProxyInMenu").bind { [weak self] disable in self?.disableShowCurrentProxyInMenu = disable ?? false - } + }.disposed(by: disposeBag) } var currentConfig:ClashConfig?{