Skip to content

Commit df72dc5

Browse files
authored
Added unversioned TeamID infrastructure. (#641)
* Added unversioned TeamID infrastructure. * Add basic documentation for "DEVELOPMENT_TEAM.xcconfig" to README.
1 parent 683f6de commit df72dc5

File tree

4 files changed

+49
-5
lines changed

4 files changed

+49
-5
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22
xcuserdata
33
project.xcworkspace
44
build
5+
6+
# User-specific xcconfig files
7+
Xcode-Configurations/DEVELOPMENT_TEAM.xcconfig

GitUp/GitUp.xcodeproj/project.pbxproj

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@
140140
165C32B51B95739700D2F894 /* QuartzCore.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = QuartzCore.framework; path = System/Library/Frameworks/QuartzCore.framework; sourceTree = SDKROOT; };
141141
31CD50E1203E2E2800360B3A /* ToolbarItemWrapperView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ToolbarItemWrapperView.h; sourceTree = "<group>"; };
142142
31CD50E2203E2E2800360B3A /* ToolbarItemWrapperView.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ToolbarItemWrapperView.m; sourceTree = "<group>"; };
143+
3DB98C7D23E091650039B454 /* DEVELOPMENT_TEAM.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = DEVELOPMENT_TEAM.xcconfig; sourceTree = "<group>"; };
143144
A53C6D0A1E61A9CF0070387E /* FontSizeTransformer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = FontSizeTransformer.h; sourceTree = "<group>"; };
144145
A53C6D0B1E61A9CF0070387E /* FontSizeTransformer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = FontSizeTransformer.m; sourceTree = "<group>"; };
145146
E212A6DD1B92100E00F62B18 /* libiconv.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libiconv.dylib; path = usr/lib/libiconv.dylib; sourceTree = SDKROOT; };
@@ -244,6 +245,7 @@
244245
E27E37561B86F670000A551A /* Base.xcconfig */,
245246
E27E37571B86F670000A551A /* Debug.xcconfig */,
246247
E27E37591B86F670000A551A /* Release.xcconfig */,
248+
3DB98C7D23E091650039B454 /* DEVELOPMENT_TEAM.xcconfig */,
247249
);
248250
name = "Xcode-Configurations";
249251
path = "../Xcode-Configurations";
@@ -394,7 +396,6 @@
394396
};
395397
E2C338AA19F8562F00063D95 = {
396398
CreatedOnToolsVersion = 6.1;
397-
DevelopmentTeam = 88W3E55T4B;
398399
};
399400
};
400401
};
@@ -600,7 +601,6 @@
600601
E21DCAEC1B253847006424E8 /* Debug */ = {
601602
isa = XCBuildConfiguration;
602603
buildSettings = {
603-
CODE_SIGN_IDENTITY = "Mac Developer";
604604
HEADER_SEARCH_PATHS = "../GitUpKit/Third-Party/libgit2/include";
605605
OTHER_LDFLAGS = (
606606
"$(BUILD_DIR)/$(CONFIGURATION)/libgit2.a",
@@ -615,7 +615,6 @@
615615
E21DCAED1B253847006424E8 /* Release */ = {
616616
isa = XCBuildConfiguration;
617617
buildSettings = {
618-
CODE_SIGN_IDENTITY = "Mac Developer";
619618
HEADER_SEARCH_PATHS = "../GitUpKit/Third-Party/libgit2/include";
620619
OTHER_LDFLAGS = (
621620
"$(BUILD_DIR)/$(CONFIGURATION)/libgit2.a",
@@ -649,7 +648,6 @@
649648
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
650649
BUNDLE_VERSION = 0;
651650
BUNDLE_VERSION_STRING = 1.1;
652-
CODE_SIGN_IDENTITY = "Mac Developer";
653651
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/Third-Party";
654652
INFOPLIST_FILE = Application/Info.plist;
655653
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";
@@ -665,7 +663,6 @@
665663
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
666664
BUNDLE_VERSION = 0;
667665
BUNDLE_VERSION_STRING = 1.1;
668-
CODE_SIGN_IDENTITY = "Mac Developer";
669666
FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/Third-Party";
670667
INFOPLIST_FILE = Application/Info.plist;
671668
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/../Frameworks";

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ To build GitUp yourself, simply run the command `git clone --recursive https://g
4040
<img src="http://i.imgur.com/dWpJExk.png">
4141
</p>
4242

43+
**Alternatively**, if you do have a developer account, you can create the file "Xcode-Configurations/DEVELOPMENT_TEAM.xcconfig" with the following build setting as its content:
44+
> DEVELOPMENT_TEAM = [Your TeamID]
45+
46+
For a more detailed description of this, you can have a look at the comments at the end of the file "Xcode-Configurations/Base.xcconfig".
47+
4348
GitUpKit
4449
========
4550

Xcode-Configurations/Base.xcconfig

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,3 +53,42 @@ GCC_WARN_UNUSED_VARIABLE = YES
5353
GITUP_PLATFORM[sdk=macosx*] = MacOSX
5454
GITUP_PLATFORM[sdk=iphonesimulator*] = iPhoneSimulator
5555
GITUP_PLATFORM[sdk=iphoneos*] = iPhoneOS
56+
57+
#include? "DEVELOPMENT_TEAM.xcconfig"
58+
59+
// Create the file DEVELOPMENT_TEAM.xcconfig
60+
// in the "Xcode-Configurations" directory within the project directory
61+
// with the following build setting:
62+
// DEVELOPMENT_TEAM = [Your TeamID]
63+
64+
// Hint: some recent Xcode versions appear to automatically create an empty file
65+
// for you on the first build. This build will fail, or course,
66+
// because code-signing can’t work without the DEVELOPMENT_TEAM set.
67+
// Just fill it in and everything should work.
68+
69+
// You can find your team ID by logging into your Apple Developer account
70+
// and going to
71+
// https://developer.apple.com/account/#/membership
72+
// It should be listed under “Team ID”.
73+
74+
// To set this system up for your own project,
75+
// copy the "Xcode-config" directory there,
76+
// add it to your Xcode project,
77+
// navigate to your project settings
78+
// (root icon in the Xcode Project Navigator)
79+
// click on the project icon there,
80+
// click on the “Info” tab
81+
// under “Configurations”
82+
// open the “Debug”, “Release”,
83+
// and any other build configurations you might have.
84+
// There you can set the pull-down menus in the
85+
// “Based on Configuration File” column to “Shared”.
86+
// Done.
87+
88+
// Don’t forget to add the DEVELOPMENT_TEAM.xcconfig file to your .gitignore:
89+
// # User-specific xcconfig files
90+
// Xcode-config/DEVELOPMENT_TEAM.xcconfig
91+
92+
// You can now remove the “DevelopmentTeam = AB1234C5DE;” entries from the
93+
// .xcodeproj/project.pbxproj if you want to.
94+

0 commit comments

Comments
 (0)