diff --git a/EmporterRapidWeaverPlugin.xcodeproj/project.pbxproj b/EmporterRapidWeaverPlugin.xcodeproj/project.pbxproj index 8a28d2f..b04a754 100644 --- a/EmporterRapidWeaverPlugin.xcodeproj/project.pbxproj +++ b/EmporterRapidWeaverPlugin.xcodeproj/project.pbxproj @@ -645,6 +645,7 @@ HEADER_SEARCH_PATHS = "Vendor/EmporterKit/**"; INFOPLIST_FILE = Support/Resources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; + MACOSX_DEPLOYMENT_TARGET = 10.11; PRODUCT_BUNDLE_IDENTIFIER = net.youngdynasty.emporter.rapidweaverplugin; PRODUCT_NAME = Emporter; SKIP_INSTALL = NO; @@ -665,6 +666,7 @@ HEADER_SEARCH_PATHS = "Vendor/EmporterKit/**"; INFOPLIST_FILE = Support/Resources/Info.plist; INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Bundles"; + MACOSX_DEPLOYMENT_TARGET = 10.11; PRODUCT_BUNDLE_IDENTIFIER = net.youngdynasty.emporter.rapidweaverplugin; PRODUCT_NAME = Emporter; SKIP_INSTALL = NO; diff --git a/EmporterRapidWeaverPlugin/ERPreviewServerManager.m b/EmporterRapidWeaverPlugin/ERPreviewServerManager.m index 67ab206..d8d1a34 100644 --- a/EmporterRapidWeaverPlugin/ERPreviewServerManager.m +++ b/EmporterRapidWeaverPlugin/ERPreviewServerManager.m @@ -131,7 +131,9 @@ - (void)suspendObserving { #pragma mark - URL management - (BOOL)_reloadServerProcessNodes { - dispatch_assert_queue(_q); + if (@available(macOS 10.12, *)) { + dispatch_assert_queue(_q); + } YDProcessNode *rwProcessNode = [[YDProcessNode currentRootNode] childWithPid:_rapidWeaver.processIdentifier]; if (rwProcessNode == nil) { @@ -150,7 +152,9 @@ - (BOOL)_reloadServerProcessNodes { } - (void)_setServerProcessNodes:(NSSet *__nonnull)serverProcessNodes { - dispatch_assert_queue(_q); + if (@available(macOS 10.12, *)) { + dispatch_assert_queue(_q); + } if (![_serverProcessNodes isEqualToSet:serverProcessNodes]) { _serverProcessNodes = serverProcessNodes; @@ -159,7 +163,9 @@ - (void)_setServerProcessNodes:(NSSet *__nonnull)serverProcessNodes { } - (void)_serverProcessNodesDidChange { - dispatch_assert_queue(_q); + if (@available(macOS 10.12, *)) { + dispatch_assert_queue(_q); + } NSMutableSet *urls = [NSMutableSet set]; for (YDProcessNode *node in _serverProcessNodes) { diff --git a/EmporterRapidWeaverPlugin/ERTunnel.m b/EmporterRapidWeaverPlugin/ERTunnel.m index 37fbdf1..6607486 100644 --- a/EmporterRapidWeaverPlugin/ERTunnel.m +++ b/EmporterRapidWeaverPlugin/ERTunnel.m @@ -232,7 +232,9 @@ - (void)dispose { #pragma mark - Synchronization - (void)_setCurrentTunnel:(EmporterTunnel *)currentTunnel { - dispatch_assert_queue(dispatch_get_main_queue()); + if (@available(macOS 10.12, *)) { + dispatch_assert_queue(dispatch_get_main_queue()); + } if (_currentTunnel == currentTunnel) { return; @@ -249,7 +251,9 @@ - (void)_setCurrentTunnel:(EmporterTunnel *)currentTunnel { } - (void)_localURLDidChange { - dispatch_assert_queue(dispatch_get_main_queue()); + if (@available(macOS 10.12, *)) { + dispatch_assert_queue(dispatch_get_main_queue()); + } if (_currentTunnel != nil) { NSNumber *port = _localURL != nil ? _localURL.port : nil; @@ -260,7 +264,9 @@ - (void)_localURLDidChange { } - (void)_nameDidChange { - dispatch_assert_queue(dispatch_get_main_queue()); + if (@available(macOS 10.12, *)) { + dispatch_assert_queue(dispatch_get_main_queue()); + } if (_currentTunnel != nil) { _currentTunnel.name = _name ?: _defaultName ?: @"";