Skip to content

Commit f0a4452

Browse files
committed
Update Xcode project configuration and deployment settings
Enhance project with updated Xcode version, enable dead code stripping, and bump macOS deployment target to 11.0. These changes improve build performance and compatibility with modern macOS versions.
1 parent e396f82 commit f0a4452

2 files changed

Lines changed: 18 additions & 43 deletions

File tree

CF Cache Status/CF Cache Status.xcodeproj/project.pbxproj

Lines changed: 17 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@
88

99
/* Begin PBXBuildFile section */
1010
5B0588CA2F08CB540004883F /* content.js in Resources */ = {isa = PBXBuildFile; fileRef = 5B0588C92F08CB540004883F /* content.js */; };
11-
5BSWIFTUI012F09A0000000001 /* CacheStatusApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BSWIFTUI002F09A0000000001 /* CacheStatusApp.swift */; };
12-
5BSWIFTUI032F09A0000000001 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BSWIFTUI022F09A0000000001 /* ContentView.swift */; };
1311
5B8F9F1E2F07E4C60092E4D0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5B8F9F1D2F07E4C60092E4D0 /* Assets.xcassets */; };
1412
5B8F9F252F07E4C60092E4D0 /* CF Cache Status Extension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 5B8F9F242F07E4C60092E4D0 /* CF Cache Status Extension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
1513
5B8F9F2A2F07E4C60092E4D0 /* SafariWebExtensionHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5B8F9F292F07E4C60092E4D0 /* SafariWebExtensionHandler.swift */; };
@@ -19,6 +17,8 @@
1917
5B8F9F3F2F07E4C70092E4D0 /* popup.html in Resources */ = {isa = PBXBuildFile; fileRef = 5B8F9F392F07E4C70092E4D0 /* popup.html */; };
2018
5B8F9F402F07E4C70092E4D0 /* manifest.json in Resources */ = {isa = PBXBuildFile; fileRef = 5B8F9F3A2F07E4C70092E4D0 /* manifest.json */; };
2119
5B8F9F412F07E4C70092E4D0 /* popup.css in Resources */ = {isa = PBXBuildFile; fileRef = 5B8F9F3B2F07E4C70092E4D0 /* popup.css */; };
20+
5BSWIFTUI012F09A0000000001 /* CacheStatusApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BSWIFTUI002F09A0000000001 /* CacheStatusApp.swift */; };
21+
5BSWIFTUI032F09A0000000001 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5BSWIFTUI022F09A0000000001 /* ContentView.swift */; };
2222
/* End PBXBuildFile section */
2323

2424
/* Begin PBXContainerItemProxy section */
@@ -48,9 +48,6 @@
4848
/* Begin PBXFileReference section */
4949
5B0588C92F08CB540004883F /* content.js */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.javascript; path = content.js; sourceTree = "<group>"; };
5050
5B8F9F092F07E4C50092E4D0 /* CF Cache Status.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "CF Cache Status.app"; sourceTree = BUILT_PRODUCTS_DIR; };
51-
5BSWIFTUI002F09A0000000001 /* CacheStatusApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CacheStatusApp.swift; sourceTree = "<group>"; };
52-
5BSWIFTUI022F09A0000000001 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
53-
5B8F9F1B2F07E4C50092E4D0 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
5451
5B8F9F1D2F07E4C60092E4D0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5552
5B8F9F1F2F07E4C60092E4D0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5653
5B8F9F242F07E4C60092E4D0 /* CF Cache Status Extension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "CF Cache Status Extension.appex"; sourceTree = BUILT_PRODUCTS_DIR; };
@@ -62,6 +59,8 @@
6259
5B8F9F392F07E4C70092E4D0 /* popup.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; name = popup.html; path = Resources/popup.html; sourceTree = "<group>"; };
6360
5B8F9F3A2F07E4C70092E4D0 /* manifest.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; name = manifest.json; path = Resources/manifest.json; sourceTree = "<group>"; };
6461
5B8F9F3B2F07E4C70092E4D0 /* popup.css */ = {isa = PBXFileReference; lastKnownFileType = text.css; name = popup.css; path = Resources/popup.css; sourceTree = "<group>"; };
62+
5BSWIFTUI002F09A0000000001 /* CacheStatusApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CacheStatusApp.swift; sourceTree = "<group>"; };
63+
5BSWIFTUI022F09A0000000001 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
6564
/* End PBXFileReference section */
6665

6766
/* Begin PBXFrameworksBuildPhase section */
@@ -111,17 +110,6 @@
111110
path = "CF Cache Status";
112111
sourceTree = "<group>";
113112
};
114-
5B8F9F0E2F07E4C50092E4D0 /* Resources */ = {
115-
isa = PBXGroup;
116-
children = (
117-
5B8F9F0F2F07E4C50092E4D0 /* Main.html */,
118-
5B8F9F122F07E4C50092E4D0 /* Icon.png */,
119-
5B8F9F142F07E4C50092E4D0 /* Style.css */,
120-
5B8F9F162F07E4C50092E4D0 /* Script.js */,
121-
);
122-
path = Resources;
123-
sourceTree = "<group>";
124-
};
125113
5B8F9F282F07E4C60092E4D0 /* CF Cache Status Extension */ = {
126114
isa = PBXGroup;
127115
children = (
@@ -198,7 +186,7 @@
198186
attributes = {
199187
BuildIndependentTargetsInParallel = 1;
200188
LastSwiftUpdateCheck = 2600;
201-
LastUpgradeCheck = 2600;
189+
LastUpgradeCheck = 2620;
202190
TargetAttributes = {
203191
5B8F9F082F07E4C50092E4D0 = {
204192
CreatedOnToolsVersion = 26.0;
@@ -281,25 +269,6 @@
281269
};
282270
/* End PBXTargetDependency section */
283271

284-
/* Begin PBXVariantGroup section */
285-
5B8F9F0F2F07E4C50092E4D0 /* Main.html */ = {
286-
isa = PBXVariantGroup;
287-
children = (
288-
5B8F9F102F07E4C50092E4D0 /* Base */,
289-
);
290-
name = Main.html;
291-
sourceTree = "<group>";
292-
};
293-
5B8F9F1A2F07E4C50092E4D0 /* Main.storyboard */ = {
294-
isa = PBXVariantGroup;
295-
children = (
296-
5B8F9F1B2F07E4C50092E4D0 /* Base */,
297-
);
298-
name = Main.storyboard;
299-
sourceTree = "<group>";
300-
};
301-
/* End PBXVariantGroup section */
302-
303272
/* Begin XCBuildConfiguration section */
304273
5B8F9F2C2F07E4C60092E4D0 /* Debug */ = {
305274
isa = XCBuildConfiguration;
@@ -335,7 +304,9 @@
335304
CLANG_WARN_UNREACHABLE_CODE = YES;
336305
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
337306
COPY_PHASE_STRIP = NO;
307+
DEAD_CODE_STRIPPING = YES;
338308
DEBUG_INFORMATION_FORMAT = dwarf;
309+
DEVELOPMENT_TEAM = H95JUDBHF7;
339310
ENABLE_STRICT_OBJC_MSGSEND = YES;
340311
ENABLE_TESTABILITY = YES;
341312
ENABLE_USER_SCRIPT_SANDBOXING = YES;
@@ -359,6 +330,7 @@
359330
MTL_FAST_MATH = YES;
360331
ONLY_ACTIVE_ARCH = YES;
361332
SDKROOT = macosx;
333+
STRING_CATALOG_GENERATE_SYMBOLS = YES;
362334
SWIFT_ACTIVE_COMPILATION_CONDITIONS = "DEBUG $(inherited)";
363335
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
364336
};
@@ -398,7 +370,9 @@
398370
CLANG_WARN_UNREACHABLE_CODE = YES;
399371
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
400372
COPY_PHASE_STRIP = NO;
373+
DEAD_CODE_STRIPPING = YES;
401374
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
375+
DEVELOPMENT_TEAM = H95JUDBHF7;
402376
ENABLE_NS_ASSERTIONS = NO;
403377
ENABLE_STRICT_OBJC_MSGSEND = YES;
404378
ENABLE_USER_SCRIPT_SANDBOXING = YES;
@@ -415,6 +389,7 @@
415389
MTL_ENABLE_DEBUG_INFO = NO;
416390
MTL_FAST_MATH = YES;
417391
SDKROOT = macosx;
392+
STRING_CATALOG_GENERATE_SYMBOLS = YES;
418393
SWIFT_COMPILATION_MODE = wholemodule;
419394
};
420395
name = Release;
@@ -424,7 +399,7 @@
424399
buildSettings = {
425400
CODE_SIGN_STYLE = Automatic;
426401
CURRENT_PROJECT_VERSION = 1;
427-
DEVELOPMENT_TEAM = H95JUDBHF7;
402+
DEAD_CODE_STRIPPING = YES;
428403
ENABLE_APP_SANDBOX = YES;
429404
ENABLE_HARDENED_RUNTIME = YES;
430405
ENABLE_USER_SELECTED_FILES = readonly;
@@ -437,7 +412,7 @@
437412
"@executable_path/../Frameworks",
438413
"@executable_path/../../../../Frameworks",
439414
);
440-
MACOSX_DEPLOYMENT_TARGET = 10.14;
415+
MACOSX_DEPLOYMENT_TARGET = 11.0;
441416
MARKETING_VERSION = 1.0;
442417
OTHER_LDFLAGS = (
443418
"-framework",
@@ -459,7 +434,7 @@
459434
buildSettings = {
460435
CODE_SIGN_STYLE = Automatic;
461436
CURRENT_PROJECT_VERSION = 1;
462-
DEVELOPMENT_TEAM = H95JUDBHF7;
437+
DEAD_CODE_STRIPPING = YES;
463438
ENABLE_APP_SANDBOX = YES;
464439
ENABLE_HARDENED_RUNTIME = YES;
465440
ENABLE_USER_SELECTED_FILES = readonly;
@@ -472,7 +447,7 @@
472447
"@executable_path/../Frameworks",
473448
"@executable_path/../../../../Frameworks",
474449
);
475-
MACOSX_DEPLOYMENT_TARGET = 10.14;
450+
MACOSX_DEPLOYMENT_TARGET = 11.0;
476451
MARKETING_VERSION = 1.0;
477452
OTHER_LDFLAGS = (
478453
"-framework",
@@ -497,7 +472,7 @@
497472
CODE_SIGN_STYLE = Automatic;
498473
COMBINE_HIDPI_IMAGES = YES;
499474
CURRENT_PROJECT_VERSION = 1;
500-
DEVELOPMENT_TEAM = H95JUDBHF7;
475+
DEAD_CODE_STRIPPING = YES;
501476
ENABLE_APP_SANDBOX = YES;
502477
ENABLE_HARDENED_RUNTIME = YES;
503478
ENABLE_OUTGOING_NETWORK_CONNECTIONS = YES;
@@ -535,7 +510,7 @@
535510
CODE_SIGN_STYLE = Automatic;
536511
COMBINE_HIDPI_IMAGES = YES;
537512
CURRENT_PROJECT_VERSION = 1;
538-
DEVELOPMENT_TEAM = H95JUDBHF7;
513+
DEAD_CODE_STRIPPING = YES;
539514
ENABLE_APP_SANDBOX = YES;
540515
ENABLE_HARDENED_RUNTIME = YES;
541516
ENABLE_OUTGOING_NETWORK_CONNECTIONS = YES;

CF Cache Status/CF Cache Status.xcodeproj/xcshareddata/xcschemes/CF Cache Status.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "2600"
3+
LastUpgradeVersion = "2620"
44
version = "1.7">
55
<BuildAction
66
parallelizeBuildables = "YES"

0 commit comments

Comments
 (0)