Skip to content

Commit f91569d

Browse files
authored
Fix library validation causing crash when debugging due to Sparkle (MonitorControl#649)
1 parent 7cc1bea commit f91569d

19 files changed

Lines changed: 37 additions & 26 deletions

File tree

MonitorControl.xcodeproj/project.pbxproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@
7474
6CC260F5256AD8F900613714 /* Preferences+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "Preferences+Extension.swift"; sourceTree = "<group>"; };
7575
6CDA0FCE26485A8300F52125 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
7676
6CDA0FD026485AA100F52125 /* en */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = en; path = en.lproj/Main.strings; sourceTree = "<group>"; };
77+
6CF93A782707981300BA219D /* MonitorControlDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = MonitorControlDebug.entitlements; sourceTree = "<group>"; };
7778
AA062E8926C9A039007E628C /* DisplaysPrefsViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DisplaysPrefsViewController.swift; sourceTree = "<group>"; };
7879
AA062E8D26CA7BE5007E628C /* DisplaysPrefsCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DisplaysPrefsCellView.swift; sourceTree = "<group>"; };
7980
AA16139A26BE772E00DCF027 /* Arm64DDC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Arm64DDC.swift; sourceTree = "<group>"; };
@@ -205,6 +206,7 @@
205206
56754EAD1D9A4016007BCDC5 /* MonitorControl */ = {
206207
isa = PBXGroup;
207208
children = (
209+
6CF93A782707981300BA219D /* MonitorControlDebug.entitlements */,
208210
F01B0686228221B6008E64DB /* Info.plist */,
209211
56754EB01D9A4016007BCDC5 /* Assets.xcassets */,
210212
56754EAE1D9A4016007BCDC5 /* main.swift */,
@@ -720,6 +722,7 @@
720722
isa = XCBuildConfiguration;
721723
buildSettings = {
722724
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
725+
CODE_SIGN_ENTITLEMENTS = MonitorControl/MonitorControlDebug.entitlements;
723726
CODE_SIGN_IDENTITY = "-";
724727
CODE_SIGN_STYLE = Automatic;
725728
COMBINE_HIDPI_IMAGES = YES;

MonitorControl/Info.plist

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<key>CFBundleShortVersionString</key>
2020
<string>$(MARKETING_VERSION)</string>
2121
<key>CFBundleVersion</key>
22-
<string>6295</string>
22+
<string>6307</string>
2323
<key>LSApplicationCategoryType</key>
2424
<string>public.app-category.utilities</string>
2525
<key>LSMinimumSystemVersion</key>
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.cs.disable-library-validation</key>
6+
<true/>
7+
</dict>
8+
</plist>

MonitorControl/UI/Base.lproj/Main.storyboard

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@
487487
<gridCell row="OpF-3Q-ZZp" column="V6M-Jv-Agj" xPlacement="leading" id="9Au-qH-WOr">
488488
<button key="contentView" verticalHuggingPriority="750" placeholderIntrinsicWidth="150" placeholderIntrinsicHeight="20" translatesAutoresizingMaskIntoConstraints="NO" id="dy4-nH-cIr">
489489
<rect key="frame" x="230" y="497" width="164" height="32"/>
490-
<buttonCell key="cell" type="push" title="Quit appliation" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="qlb-wH-qr4">
490+
<buttonCell key="cell" type="push" title="Quit application" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="qlb-wH-qr4">
491491
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
492492
<font key="font" metaFont="system"/>
493493
</buttonCell>

MonitorControl/UI/de.lproj/Main.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
/* Class = "NSMenuItem"; title = "Both standard and custom shortcuts"; ObjectID = "QDG-SA-mRX"; */
284284
"QDG-SA-mRX.title" = "Sowohl Standard- als auch benutzerdefinierte Tastenkombinationen";
285285

286-
/* Class = "NSButtonCell"; title = "Quit appliation"; ObjectID = "qlb-wH-qr4"; */
286+
/* Class = "NSButtonCell"; title = "Quit application"; ObjectID = "qlb-wH-qr4"; */
287287
"qlb-wH-qr4.title" = "App Beenden";
288288

289289
/* Class = "NSButtonCell"; title = "Show contrast slider in menu"; ObjectID = "qO0-dB-yUs"; */

MonitorControl/UI/en.lproj/Main.strings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@
283283
/* Class = "NSMenuItem"; title = "Both standard and custom shortcuts"; ObjectID = "QDG-SA-mRX"; */
284284
"QDG-SA-mRX.title" = "Both standard and custom shortcuts";
285285

286-
/* Class = "NSButtonCell"; title = "Quit appliation"; ObjectID = "qlb-wH-qr4"; */
287-
"qlb-wH-qr4.title" = "Quit appliation";
286+
/* Class = "NSButtonCell"; title = "Quit application"; ObjectID = "qlb-wH-qr4"; */
287+
"qlb-wH-qr4.title" = "Quit application";
288288

289289
/* Class = "NSButtonCell"; title = "Show contrast slider in menu"; ObjectID = "qO0-dB-yUs"; */
290290
"qO0-dB-yUs.title" = "Show contrast slider in menu";

MonitorControl/UI/es-419.lproj/Main.strings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@
283283
/* Class = "NSMenuItem"; title = "Both standard and custom shortcuts"; ObjectID = "QDG-SA-mRX"; */
284284
"QDG-SA-mRX.title" = "Both standard and custom shortcuts";
285285

286-
/* Class = "NSButtonCell"; title = "Quit appliation"; ObjectID = "qlb-wH-qr4"; */
287-
"qlb-wH-qr4.title" = "Quit appliation";
286+
/* Class = "NSButtonCell"; title = "Quit application"; ObjectID = "qlb-wH-qr4"; */
287+
"qlb-wH-qr4.title" = "Quit application";
288288

289289
/* Class = "NSButtonCell"; title = "Show contrast slider in menu"; ObjectID = "qO0-dB-yUs"; */
290290
"qO0-dB-yUs.title" = "Show contrast slider in menu";

MonitorControl/UI/fr.lproj/Main.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
/* Class = "NSMenuItem"; title = "Both standard and custom shortcuts"; ObjectID = "QDG-SA-mRX"; */
284284
"QDG-SA-mRX.title" = "Raccourcis standard et personnalisés";
285285

286-
/* Class = "NSButtonCell"; title = "Quit appliation"; ObjectID = "qlb-wH-qr4"; */
286+
/* Class = "NSButtonCell"; title = "Quit application"; ObjectID = "qlb-wH-qr4"; */
287287
"qlb-wH-qr4.title" = "Quitter l'application";
288288

289289
/* Class = "NSButtonCell"; title = "Show contrast slider in menu"; ObjectID = "qO0-dB-yUs"; */

MonitorControl/UI/hu.lproj/Main.strings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@
283283
/* Class = "NSMenuItem"; title = "Both standard and custom shortcuts"; ObjectID = "QDG-SA-mRX"; */
284284
"QDG-SA-mRX.title" = "Hagyományos és egyedi billentyűkombinációk";
285285

286-
/* Class = "NSButtonCell"; title = "Quit appliation"; ObjectID = "qlb-wH-qr4"; */
286+
/* Class = "NSButtonCell"; title = "Quit application"; ObjectID = "qlb-wH-qr4"; */
287287
"qlb-wH-qr4.title" = "Kilépés";
288288

289289
/* Class = "NSButtonCell"; title = "Show contrast slider in menu"; ObjectID = "qO0-dB-yUs"; */

MonitorControl/UI/it.lproj/Main.strings

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,8 +283,8 @@
283283
/* Class = "NSMenuItem"; title = "Both standard and custom shortcuts"; ObjectID = "QDG-SA-mRX"; */
284284
"QDG-SA-mRX.title" = "Both standard and custom shortcuts";
285285

286-
/* Class = "NSButtonCell"; title = "Quit appliation"; ObjectID = "qlb-wH-qr4"; */
287-
"qlb-wH-qr4.title" = "Quit appliation";
286+
/* Class = "NSButtonCell"; title = "Quit application"; ObjectID = "qlb-wH-qr4"; */
287+
"qlb-wH-qr4.title" = "Quit application";
288288

289289
/* Class = "NSButtonCell"; title = "Show contrast slider in menu"; ObjectID = "qO0-dB-yUs"; */
290290
"qO0-dB-yUs.title" = "Show contrast slider in menu";

0 commit comments

Comments
 (0)