From a551caba977769fd9ecca2810dde35ad49a42517 Mon Sep 17 00:00:00 2001 From: Pedro Cuenca Date: Tue, 17 Jan 2023 16:06:47 +0100 Subject: [PATCH] Disable code signing only in Debug mode --- Diffusion.xcodeproj/project.pbxproj | 7 +++++-- config/common.xcconfig | 3 --- config/debug.xcconfig | 11 +++++++++++ 3 files changed, 16 insertions(+), 5 deletions(-) create mode 100644 config/debug.xcconfig diff --git a/Diffusion.xcodeproj/project.pbxproj b/Diffusion.xcodeproj/project.pbxproj index bd1a6f2..68242c2 100644 --- a/Diffusion.xcodeproj/project.pbxproj +++ b/Diffusion.xcodeproj/project.pbxproj @@ -66,6 +66,7 @@ EBB5BA5929426E06003A2A5B /* Downloader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Downloader.swift; sourceTree = ""; }; EBDD7DB22973200200C1C4B2 /* Utils.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Utils.swift; sourceTree = ""; }; EBDD7DB72976AAFE00C1C4B2 /* State.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = State.swift; sourceTree = ""; }; + EBDD7DBA2976F03600C1C4B2 /* debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = debug.xcconfig; path = config/debug.xcconfig; sourceTree = ""; }; EBE3FF4A295DFE2400E921AA /* common.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = common.xcconfig; path = config/common.xcconfig; sourceTree = ""; }; EBE3FF4B295E1EFE00E921AA /* ModelInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ModelInfo.swift; sourceTree = ""; }; EBE4438729488DCA00CDA605 /* README.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = README.md; sourceTree = ""; }; @@ -145,6 +146,7 @@ isa = PBXGroup; children = ( EBE3FF4A295DFE2400E921AA /* common.xcconfig */, + EBDD7DBA2976F03600C1C4B2 /* debug.xcconfig */, EBE4438729488DCA00CDA605 /* README.md */, EBE443892948953600CDA605 /* LICENSE */, EBE755FF293E910800806B32 /* Packages */, @@ -607,7 +609,7 @@ }; EBE755EB293E37DE00806B32 /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = EBE3FF4A295DFE2400E921AA /* common.xcconfig */; + baseConfigurationReference = EBDD7DBA2976F03600C1C4B2 /* debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -777,7 +779,7 @@ }; F155202D2971093400DC009B /* Debug */ = { isa = XCBuildConfiguration; - baseConfigurationReference = EBE3FF4A295DFE2400E921AA /* common.xcconfig */; + baseConfigurationReference = EBDD7DBA2976F03600C1C4B2 /* debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; @@ -804,6 +806,7 @@ }; F155202E2971093400DC009B /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = EBE3FF4A295DFE2400E921AA /* common.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; diff --git a/config/common.xcconfig b/config/common.xcconfig index 5883eda..4097385 100644 --- a/config/common.xcconfig +++ b/config/common.xcconfig @@ -11,7 +11,4 @@ // Update if you fork this repo DEVELOPMENT_TEAM = ZWDJQ796RU -// Disable code-signing for macOS -CODE_SIGN_IDENTITY[sdk=macos*] = - PRODUCT_BUNDLE_IDENTIFIER = com.huggingface.DiffusionApp diff --git a/config/debug.xcconfig b/config/debug.xcconfig new file mode 100644 index 0000000..0e33aaa --- /dev/null +++ b/config/debug.xcconfig @@ -0,0 +1,11 @@ +// +// debug.xcconfig +// Diffusion +// +// Created by Pedro Cuenca on 17/1/23. +// + +#include "common.xcconfig" + +// Disable code-signing for macOS +CODE_SIGN_IDENTITY[sdk=macos*] =