Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions BeaconOSX.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -404,8 +404,9 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "BeaconOSX/BeaconOSX-Prefix.pch";
INFOPLIST_FILE = "BeaconOSX/BeaconOSX-Info.plist";
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx10.9;
SDKROOT = macosx10.11;
WRAPPER_EXTENSION = app;
};
name = Debug;
Expand All @@ -418,8 +419,9 @@
GCC_PRECOMPILE_PREFIX_HEADER = YES;
GCC_PREFIX_HEADER = "BeaconOSX/BeaconOSX-Prefix.pch";
INFOPLIST_FILE = "BeaconOSX/BeaconOSX-Info.plist";
MACOSX_DEPLOYMENT_TARGET = 10.11;
PRODUCT_NAME = "$(TARGET_NAME)";
SDKROOT = macosx10.9;
SDKROOT = macosx10.11;
WRAPPER_EXTENSION = app;
};
name = Release;
Expand Down
4 changes: 2 additions & 2 deletions BeaconOSX/BLCAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ - (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
NSInteger major = [[version objectAtIndex:0] integerValue];
NSInteger minor = [[version objectAtIndex:1] integerValue];

if (major == 10 && minor != 9) {
if (major == 10 && minor < 9) {
NSAlert* alert = [NSAlert alertWithMessageText:@"Unsupported OS"
defaultButton:@"OK"
alternateButton:nil
otherButton:nil
informativeTextWithFormat:@"BeaconOSX requires OS X Mavericks!!!\n\nBeaconOSX does NOT work with versions of OS X before or after Mavericks, e.g. Yosemite"];
informativeTextWithFormat:@"BeaconOSX requires OS X Mavericks!!!\n\nBeaconOSX does NOT work with versions of OS X before Mavericks"];

[alert beginSheetModalForWindow:self.window completionHandler:^(NSModalResponse returnCode) {
exit(-1);
Expand Down