From 2a082a70c07908faadce1b3af4a826b3309bfbe9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20Wei=C3=9F?= Date: Sun, 1 Aug 2021 18:29:05 +0200 Subject: [PATCH] Added unversioned TeamID infrastructure. This is described in detail in the file "Shared.xcconfig". --- Xcode-config/DEVELOPMENT_TEAM.xcconfig | 2 ++ Xcode-config/Shared.xcconfig | 49 ++++++++++++++++++++++++++ ocr.xcodeproj/project.pbxproj | 17 +++++++-- 3 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 Xcode-config/DEVELOPMENT_TEAM.xcconfig create mode 100644 Xcode-config/Shared.xcconfig diff --git a/Xcode-config/DEVELOPMENT_TEAM.xcconfig b/Xcode-config/DEVELOPMENT_TEAM.xcconfig new file mode 100644 index 0000000..f1c5177 --- /dev/null +++ b/Xcode-config/DEVELOPMENT_TEAM.xcconfig @@ -0,0 +1,2 @@ +DEVELOPMENT_TEAM = FK9S39L3SK +//DEVELOPMENT_TEAM = S5DR6A975P diff --git a/Xcode-config/Shared.xcconfig b/Xcode-config/Shared.xcconfig new file mode 100644 index 0000000..d0704be --- /dev/null +++ b/Xcode-config/Shared.xcconfig @@ -0,0 +1,49 @@ +#include? "DEVELOPMENT_TEAM.xcconfig" + +// Create the file DEVELOPMENT_TEAM.xcconfig +// in the "Xcode-config" directory within the project directory +// with the following build setting: +// DEVELOPMENT_TEAM = [Your TeamID] + +// One way to find your Team ID is to set the “Development Team” +// build setting (Xcode key: "DEVELOPMENT_TEAM") and have a look +// at the “Source Control” changes (menu item “Commit…”/⌥⌘C). +// Just make sure that this change doesn’t actually get commited. + +// You can also find your Team ID by logging into your Apple Developer account +// and going to +// https://developer.apple.com/account/#/membership +// It should be listed under “Team ID”. + +// To set this system up for your own project, +// copy the "Xcode-config" directory there, +// add it to your Xcode project, +// navigate to your project settings +// (root icon in the Xcode Project Navigator) +// click on the project icon there, +// click on the “Info” tab +// under “Configurations” +// open the “Debug”, “Release”, +// and any other build configurations you might have. +// There you can set the pull-down menus in the +// “Based on Configuration File” column to “Shared”. +// Your work in Xcode is done. + +// Don’t forget to add the DEVELOPMENT_TEAM.xcconfig file to your .gitignore: +// # User-specific xcconfig files +// Xcode-config/DEVELOPMENT_TEAM.xcconfig +// The two lines above are an example. +// Please don’t copy the comment slashes over though. + +// You can and should now replace the “DevelopmentTeam = AB1234C5DE;” entries in +// .xcodeproj/project.pbxproj +// with “DevelopmentTeam = "";” +// They would otherwise override the Team ID set via this config file and its include. +// Please note that .pbxproj files use straight quotes. + +// When you commit changes to the Xcode project file +// after changing settings in “Signing & Capabilities” +// Entries like these may appear in your file changes/commit diff preview: +// CODE_SIGN_IDENTITY = …; +// CODE_SIGN_STYLE = Manual/Automatic; +// Please make sure not to commit them to source control. diff --git a/ocr.xcodeproj/project.pbxproj b/ocr.xcodeproj/project.pbxproj index 46bc52d..b62b255 100644 --- a/ocr.xcodeproj/project.pbxproj +++ b/ocr.xcodeproj/project.pbxproj @@ -25,6 +25,8 @@ /* Begin PBXFileReference section */ 19E4CACBB64156983BF4B2A0 /* Pods-ocr.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-ocr.release.xcconfig"; path = "Target Support Files/Pods-ocr/Pods-ocr.release.xcconfig"; sourceTree = ""; }; + 3D84247926B70224002F57D8 /* DEVELOPMENT_TEAM.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = DEVELOPMENT_TEAM.xcconfig; sourceTree = ""; }; + 3D84247A26B70224002F57D8 /* Shared.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Shared.xcconfig; sourceTree = ""; }; 84E9354A2651EEE400F03D17 /* ocr */ = {isa = PBXFileReference; explicitFileType = "compiled.mach-o.executable"; includeInIndex = 0; path = ocr; sourceTree = BUILT_PRODUCTS_DIR; }; 84E9354D2651EEE400F03D17 /* main.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = main.swift; sourceTree = ""; }; 8E154BE8F115995C78B97232 /* libPods-ocr.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libPods-ocr.a"; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -43,13 +45,21 @@ /* End PBXFrameworksBuildPhase section */ /* Begin PBXGroup section */ + 3D84247826B70224002F57D8 /* Xcode-config */ = { + isa = PBXGroup; + children = ( + 3D84247926B70224002F57D8 /* DEVELOPMENT_TEAM.xcconfig */, + 3D84247A26B70224002F57D8 /* Shared.xcconfig */, + ); + path = "Xcode-config"; + sourceTree = ""; + }; 53165E4C5B9A4E767F57E18A /* Pods */ = { isa = PBXGroup; children = ( CD7F1100A36C37937382E516 /* Pods-ocr.debug.xcconfig */, 19E4CACBB64156983BF4B2A0 /* Pods-ocr.release.xcconfig */, ); - name = Pods; path = Pods; sourceTree = ""; }; @@ -60,6 +70,7 @@ 84E9354B2651EEE400F03D17 /* Products */, 53165E4C5B9A4E767F57E18A /* Pods */, B67C4D1AE1E95741D9FFFB85 /* Frameworks */, + 3D84247826B70224002F57D8 /* Xcode-config */, ); sourceTree = ""; }; @@ -179,6 +190,7 @@ /* Begin XCBuildConfiguration section */ 84E9354F2651EEE400F03D17 /* Debug */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 3D84247A26B70224002F57D8 /* Shared.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -240,6 +252,7 @@ }; 84E935502651EEE400F03D17 /* Release */ = { isa = XCBuildConfiguration; + baseConfigurationReference = 3D84247A26B70224002F57D8 /* Shared.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; CLANG_ANALYZER_NONNULL = YES; @@ -297,7 +310,6 @@ baseConfigurationReference = CD7F1100A36C37937382E516 /* Pods-ocr.debug.xcconfig */; buildSettings = { CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = RWFD69KX56; ENABLE_HARDENED_RUNTIME = YES; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0; @@ -309,7 +321,6 @@ baseConfigurationReference = 19E4CACBB64156983BF4B2A0 /* Pods-ocr.release.xcconfig */; buildSettings = { CODE_SIGN_STYLE = Automatic; - DEVELOPMENT_TEAM = RWFD69KX56; ENABLE_HARDENED_RUNTIME = YES; PRODUCT_NAME = "$(TARGET_NAME)"; SWIFT_VERSION = 5.0;