Skip to content

Commit 017b508

Browse files
Fix crash on Mavericks caused by using unavailable symbol.
Now using the older dispatch priority queue priority constant instead of the QOS constant. Fixes #2
1 parent 907368b commit 017b508

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

BuildSettingExtractor/AppDelegate.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@ - (IBAction)handleDroppedFile:(DragFileView *)sender {
5858
NSURL *destinationURL = openPanel.URL;
5959

6060
// Perform the extraction in the background.
61-
dispatch_async(dispatch_get_global_queue(QOS_CLASS_USER_INITIATED, 0), ^{
61+
// Using DISPATCH_QUEUE_PRIORITY_HIGH which is available on 10.9
62+
// Move to QOS_CLASS_USER_INITIATED when 10.10 is the deployment target
63+
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_HIGH, 0), ^{
6264
BuildSettingExtractor *buildSettingExtractor = [[BuildSettingExtractor alloc] init];
6365
buildSettingExtractor.includeBuildSettingInfoComments = [[NSUserDefaults standardUserDefaults] boolForKey:TPSIncludeBuildSettingInfoComments];
6466

0 commit comments

Comments
 (0)