Skip to content

Commit 70070c8

Browse files
authored
Changing the bundle identifier setup process (#151)
* Move MAIN_APP_BUNDLE_IDENTIFIER to a config file * Clarify README
1 parent 2ebe5d9 commit 70070c8

File tree

5 files changed

+18
-3
lines changed

5 files changed

+18
-3
lines changed
-39.9 KB
Loading
434 KB
Loading

Loop.xcconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
//
2+
// Loop.xcconfig
3+
// Loop
4+
//
5+
// Created by Nate Racklyeft on 9/3/16.
6+
// Copyright © 2016 Nathan Racklyeft. All rights reserved.
7+
//
8+
9+
// Change this on first setup to your own unique organization identifier in
10+
// reverse-domain name syntax.
11+
MAIN_APP_BUNDLE_IDENTIFIER = com.loudnate

Loop.xcodeproj/project.pbxproj

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@
286286
437CEEC71CD84CBB003C8C80 /* ReservoirVolumeHUDView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ReservoirVolumeHUDView.swift; sourceTree = "<group>"; };
287287
437CEEC91CD84DB7003C8C80 /* BatteryLevelHUDView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BatteryLevelHUDView.swift; sourceTree = "<group>"; };
288288
437CEEE31CDE5C0A003C8C80 /* UIImage.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = UIImage.swift; sourceTree = "<group>"; };
289+
437D9BA11D7B5203007245E8 /* Loop.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = Loop.xcconfig; sourceTree = "<group>"; };
289290
438849E91D297CB6003B3F23 /* NightscoutService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = NightscoutService.swift; sourceTree = "<group>"; };
290291
438849EB1D29EC34003B3F23 /* AmplitudeService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AmplitudeService.swift; sourceTree = "<group>"; };
291292
438849ED1D2A1EBB003B3F23 /* MLabService.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MLabService.swift; sourceTree = "<group>"; };
@@ -484,6 +485,7 @@
484485
43E2D8D21D20BF42004DA55F /* DoseMathTests */,
485486
968DCD53F724DE56FFE51920 /* Frameworks */,
486487
43776F8D1B8022E90074EA36 /* Products */,
488+
437D9BA11D7B5203007245E8 /* Loop.xcconfig */,
487489
);
488490
sourceTree = "<group>";
489491
};
@@ -1151,6 +1153,7 @@
11511153
/* Begin XCBuildConfiguration section */
11521154
43776FB41B8022E90074EA36 /* Debug */ = {
11531155
isa = XCBuildConfiguration;
1156+
baseConfigurationReference = 437D9BA11D7B5203007245E8 /* Loop.xcconfig */;
11541157
buildSettings = {
11551158
ALWAYS_SEARCH_USER_PATHS = NO;
11561159
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
@@ -1187,7 +1190,7 @@
11871190
GCC_WARN_UNUSED_FUNCTION = YES;
11881191
GCC_WARN_UNUSED_VARIABLE = YES;
11891192
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
1190-
MAIN_APP_BUNDLE_IDENTIFIER = com.loudnate.Loop;
1193+
MAIN_APP_BUNDLE_IDENTIFIER = "$(inherited).Loop";
11911194
MTL_ENABLE_DEBUG_INFO = YES;
11921195
ONLY_ACTIVE_ARCH = YES;
11931196
SDKROOT = iphoneos;
@@ -1199,6 +1202,7 @@
11991202
};
12001203
43776FB51B8022E90074EA36 /* Release */ = {
12011204
isa = XCBuildConfiguration;
1205+
baseConfigurationReference = 437D9BA11D7B5203007245E8 /* Loop.xcconfig */;
12021206
buildSettings = {
12031207
ALWAYS_SEARCH_USER_PATHS = NO;
12041208
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
@@ -1229,7 +1233,7 @@
12291233
GCC_WARN_UNUSED_FUNCTION = YES;
12301234
GCC_WARN_UNUSED_VARIABLE = YES;
12311235
IPHONEOS_DEPLOYMENT_TARGET = 9.3;
1232-
MAIN_APP_BUNDLE_IDENTIFIER = com.loudnate.Loop;
1236+
MAIN_APP_BUNDLE_IDENTIFIER = "$(inherited).Loop";
12331237
MTL_ENABLE_DEBUG_INFO = NO;
12341238
SDKROOT = iphoneos;
12351239
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Fork and clone this repository so you can commit the changes you'll make below.
8484

8585
[![Assigning a bundle identifier](/Documentation/Assigning%20a%20bundle%20identifier.png?raw=true)](/Documentation/Assigning%20a%20bundle%20identifier.png)
8686

87-
In the Loop project's Build Settings, change the value of `MAIN_APP_BUNDLE_IDENTIFIER` to something unique. Usually this means replacing `com.loudnate` with a reverse-domain name of your choosing.
87+
Open `Loop.xcodeproj` in Xcode. In the Project Navigator on the left-hand side, open `Loop.xcconfig`. Change the value of `MAIN_APP_BUNDLE_IDENTIFIER` to a unique reverse-domain name of your choosing.
8888

8989
## Installing Carthage
9090

0 commit comments

Comments
 (0)