Skip to content

Commit 9dfab71

Browse files
committed
Change the method of converting bundle ID
1 parent 0b4c628 commit 9dfab71

File tree

5 files changed

+12
-13
lines changed

5 files changed

+12
-13
lines changed

Fetch.xcodeproj/project.pbxproj

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1451,7 +1451,7 @@
14511451
"$(PROJECT_DIR)/Connect-SDK-iOS/build/Debug-iphoneos",
14521452
);
14531453
ONLY_ACTIVE_ARCH = YES;
1454-
PRODUCT_BUNDLE_IDENTIFIER = uk.co.wearecocoon.Fetch;
1454+
PRODUCT_BUNDLE_IDENTIFIER = com.getfetchapp.Fetch;
14551455
PRODUCT_NAME = "$(TARGET_NAME)";
14561456
PROVISIONING_PROFILE = "";
14571457
SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/Fetch/Fetch-Bridging-Header.h";
@@ -1483,7 +1483,7 @@
14831483
"$(inherited)",
14841484
"$(PROJECT_DIR)/Connect-SDK-iOS/build/Debug-iphoneos",
14851485
);
1486-
PRODUCT_BUNDLE_IDENTIFIER = uk.co.wearecocoon.Fetch;
1486+
PRODUCT_BUNDLE_IDENTIFIER = com.getfetchapp.Fetch;
14871487
PRODUCT_NAME = "$(TARGET_NAME)";
14881488
PROVISIONING_PROFILE = "";
14891489
SWIFT_OBJC_BRIDGING_HEADER = "$(SRCROOT)/Fetch/Fetch-Bridging-Header.h";
@@ -1508,7 +1508,7 @@
15081508
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
15091509
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
15101510
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1511-
PRODUCT_BUNDLE_IDENTIFIER = uk.co.wearecocoon.SRBarcodeScanner;
1511+
PRODUCT_BUNDLE_IDENTIFIER = com.getfetchapp.SRBarcodeScanner;
15121512
PRODUCT_NAME = "$(TARGET_NAME)";
15131513
SKIP_INSTALL = YES;
15141514
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
@@ -1535,7 +1535,7 @@
15351535
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
15361536
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
15371537
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1538-
PRODUCT_BUNDLE_IDENTIFIER = uk.co.wearecocoon.SRBarcodeScanner;
1538+
PRODUCT_BUNDLE_IDENTIFIER = com.getfetchapp.SRBarcodeScanner;
15391539
PRODUCT_NAME = "$(TARGET_NAME)";
15401540
SKIP_INSTALL = YES;
15411541
SWIFT_VERSION = 2.3;
@@ -1566,7 +1566,7 @@
15661566
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
15671567
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
15681568
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1569-
PRODUCT_BUNDLE_IDENTIFIER = uk.co.wearecocoon.PutioKit;
1569+
PRODUCT_BUNDLE_IDENTIFIER = com.getfetchapp.PutioKit;
15701570
PRODUCT_NAME = "$(TARGET_NAME)";
15711571
SKIP_INSTALL = YES;
15721572
SWIFT_VERSION = 2.3;
@@ -1597,7 +1597,7 @@
15971597
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
15981598
IPHONEOS_DEPLOYMENT_TARGET = 9.0;
15991599
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
1600-
PRODUCT_BUNDLE_IDENTIFIER = uk.co.wearecocoon.PutioKit;
1600+
PRODUCT_BUNDLE_IDENTIFIER = com.getfetchapp.PutioKit;
16011601
PRODUCT_NAME = "$(TARGET_NAME)";
16021602
SKIP_INSTALL = YES;
16031603
SWIFT_VERSION = 2.3;

Fetch/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
<key>CFBundleExecutable</key>
2929
<string>$(EXECUTABLE_NAME)</string>
3030
<key>CFBundleIdentifier</key>
31-
<string>com.getfetchapp.Fetch-1478794335</string>
31+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
3232
<key>CFBundleInfoDictionaryVersion</key>
3333
<string>6.0</string>
3434
<key>CFBundleName</key>

PutioKit/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>$(EXECUTABLE_NAME)</string>
99
<key>CFBundleIdentifier</key>
10-
<string>com.getfetchapp.PutioKit-1478794335</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>

SRBarcodeScanner/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<key>CFBundleExecutable</key>
88
<string>$(EXECUTABLE_NAME)</string>
99
<key>CFBundleIdentifier</key>
10-
<string>com.getfetchapp.SRBarcodeScanner-1478794335</string>
10+
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
1111
<key>CFBundleInfoDictionaryVersion</key>
1212
<string>6.0</string>
1313
<key>CFBundleName</key>

prepare

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ pod install
1515
echo "============================================"
1616
echo "Changing bundle identifiers"
1717
echo "============================================"
18-
CWD="$(dirname $0)";
19-
/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.getfetchapp.Fetch-$(date +%s)" $CWD/Fetch/Info.plist
20-
/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.getfetchapp.PutioKit-$(date +%s)" $CWD/PutioKit/Info.plist
21-
/usr/libexec/PlistBuddy -c "Set :CFBundleIdentifier com.getfetchapp.SRBarcodeScanner-$(date +%s)" $CWD/SRBarcodeScanner/Info.plist
18+
sed -i 's/com.getfetchapp.Fetch/com.getfetchapp.Fetch-'$(date +%s)'/g' Fetch.xcodeproj/project.pbxproj
19+
sed -i 's/com.getfetchapp.PutioKit/com.getfetchapp.PutioKit-'$(date +%s)'/g' Fetch.xcodeproj/project.pbxproj
20+
sed -i 's/com.getfetchapp.SRBarcodeScanner/com.getfetchapp.SRBarcodeScanner-'$(date +%s)'/g' Fetch.xcodeproj/project.pbxproj
2221
echo "============================================"
2322
echo "Fetch is ready to build! 🚀"
2423
echo "============================================"

0 commit comments

Comments
 (0)