--- Transmission.xcodeproj/project.pbxproj.orig	2023-02-01 13:55:00
+++ Transmission.xcodeproj/project.pbxproj	2023-02-18 10:51:59
@@ -2595,24 +2595,6 @@
 			productReference = BE1183480CE160960002D0F3 /* libminiupnp.a */;
 			productType = "com.apple.product-type.library.static";
 		};
-		BE75C3480C729E9500DBEFE0 /* event */ = {
-			isa = PBXNativeTarget;
-			buildConfigurationList = BE75C34A0C729EB600DBEFE0 /* Build configuration list for PBXNativeTarget "event" */;
-			buildPhases = (
-				BE75C3510C729EE100DBEFE0 /* Copy libevent headers */,
-				BE75C3450C729E9500DBEFE0 /* Headers */,
-				BE75C3460C729E9500DBEFE0 /* Sources */,
-				BE75C3470C729E9500DBEFE0 /* Frameworks */,
-			);
-			buildRules = (
-			);
-			dependencies = (
-			);
-			name = event;
-			productName = event;
-			productReference = BE75C3490C729E9500DBEFE0 /* libevent.a */;
-			productType = "com.apple.product-type.library.static";
-		};
 		BEFC1BFF0C07750000B0BB3C /* transmission-daemon */ = {
 			isa = PBXNativeTarget;
 			buildConfigurationList = BEFC1C090C07753800B0BB3C /* Build configuration list for PBXNativeTarget "transmission-daemon" */;
@@ -2844,7 +2826,6 @@
 				C8B27B9228153F3400A22B5D /* transmission-show */,
 				A22CFCB90FC24F710009BD3E /* dht */,
 				A2E384CD130DFB1D001F501B /* utp */,
-				BE75C3480C729E9500DBEFE0 /* event */,
 				BE1183470CE160960002D0F3 /* miniupnp */,
 				3C7A118C0D0B2EB800B5701F /* natpmp */,
 				C1639A6E1A55F4D600E42033 /* b64 */,
@@ -2923,7 +2870,7 @@
 			);
 			runOnlyForDeploymentPostprocessing = 0;
 			shellPath = /bin/sh;
-			shellScript = "sh update-version-h.sh\n";
+			shellScript = "bash update-version-h.sh\n";
 		};
 		A2305097100C0293003FDB0C /* ShellScript */ = {
 			isa = PBXShellScriptBuildPhase;
@@ -2941,24 +2922,6 @@
 			shellPath = /bin/sh;
 			shellScript = "cd third-party/miniupnpc\nsh updateminiupnpcstrings.sh \"$SCRIPT_INPUT_FILE_0\" \"$SCRIPT_INPUT_FILE_1\" \"$SCRIPT_OUTPUT_FILE_0\"\n";
 		};
-		BE75C3510C729EE100DBEFE0 /* Copy libevent headers */ = {
-			isa = PBXShellScriptBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-			);
-			inputPaths = (
-				"$(SRCROOT)/third-party/macosx-libevent-evconfig-private.h",
-				"$(SRCROOT)/third-party/macosx-libevent-event-config.h",
-			);
-			name = "Copy libevent headers";
-			outputPaths = (
-				"$(SRCROOT)/third-party/libevent/evconfig-private.h",
-				"$(SRCROOT)/@@PREFIX@@/include/event2/event-config.h",
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-			shellPath = /bin/bash;
-			shellScript = "cd @@PREFIX@@/include/event2\n\nif [ ! -e event-config.h -a ! ../../../macosx-libevent-event-config.h -ef event-config.h ]; then\n    ln -s ../../../macosx-libevent-event-config.h event-config.h;\nfi\n\nif [ ! -e ../evconfig-private.h -a ! ../../macosx-libevent-evconfig-private.h -ef ../evconfig-private.h ]; then\n    ln -s ../../macosx-libevent-evconfig-private.h ../evconfig-private.h;\nfi\n";
-		};
 		C12F197C1E1AE55A0005E93F /* ShellScript */ = {
 			isa = PBXShellScriptBuildPhase;
 			buildActionMask = 2147483647;
@@ -3909,6 +3796,7 @@
 				INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
 				INFOPLIST_PREFIX_HEADER = libtransmission/version.h;
 				INFOPLIST_PREPROCESS = YES;
+				LIBRARY_SEARCH_PATHS = "@@PREFIX@@/lib";
 				MACOSX_DEPLOYMENT_TARGET = 10.13;
 				ONLY_ACTIVE_ARCH = YES;
 				OTHER_CFLAGS = (
@@ -4105,6 +3993,7 @@
 				INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
 				INFOPLIST_PREFIX_HEADER = libtransmission/version.h;
 				INFOPLIST_PREPROCESS = YES;
+				LIBRARY_SEARCH_PATHS = "@@PREFIX@@/lib";
 				MACOSX_DEPLOYMENT_TARGET = 10.13;
 				OTHER_CFLAGS = (
 					"$(inherited)",
@@ -4205,6 +4094,7 @@
 				INFOPLIST_OTHER_PREPROCESSOR_FLAGS = "-traditional";
 				INFOPLIST_PREFIX_HEADER = libtransmission/version.h;
 				INFOPLIST_PREPROCESS = YES;
+				LIBRARY_SEARCH_PATHS = "@@PREFIX@@/lib";
 				MACOSX_DEPLOYMENT_TARGET = 10.13;
 				ONLY_ACTIVE_ARCH = YES;
 				OTHER_CFLAGS = (
