From 20f73ffc9422042bb6a40f96583d22b82a4b92fa Mon Sep 17 00:00:00 2001 From: Oleg Krupnov Date: Thu, 10 Oct 2013 17:39:19 +0300 Subject: [PATCH] Fixed Xcode5 warnings --- SUUIBasedUpdateDriver.m | 6 ++- Sparkle.xcodeproj/project.pbxproj | 42 ++++++++++++++++++- .../xcshareddata/xcschemes/Sparkle.xcscheme | 6 +-- 3 files changed, 49 insertions(+), 5 deletions(-) diff --git a/SUUIBasedUpdateDriver.m b/SUUIBasedUpdateDriver.m index dc37e056..3975165b 100644 --- a/SUUIBasedUpdateDriver.m +++ b/SUUIBasedUpdateDriver.m @@ -201,7 +201,11 @@ - (void)abortUpdateWithError:(NSError *)error { - NSAlert *alert = [NSAlert alertWithMessageText:SULocalizedString(@"Update Error!", nil) defaultButton:SULocalizedString(@"Cancel Update", nil) alternateButton:nil otherButton:nil informativeTextWithFormat:[error localizedDescription]]; + NSAlert *alert = [NSAlert alertWithMessageText:SULocalizedString(@"Update Error!", nil) + defaultButton:SULocalizedString(@"Cancel Update", nil) + alternateButton:nil + otherButton:nil + informativeTextWithFormat:@"%@", [error localizedDescription]]; [self showModalAlert:alert]; [super abortUpdateWithError:error]; } diff --git a/Sparkle.xcodeproj/project.pbxproj b/Sparkle.xcodeproj/project.pbxproj index d5ebe18d..85c9267c 100644 --- a/Sparkle.xcodeproj/project.pbxproj +++ b/Sparkle.xcodeproj/project.pbxproj @@ -909,7 +909,7 @@ 0867D690FE84028FC02AAC07 /* Project object */ = { isa = PBXProject; attributes = { - LastUpgradeCheck = 0450; + LastUpgradeCheck = 0500; }; buildConfigurationList = 1DEB91B108733DA50010E9CD /* Build configuration list for PBXProject "Sparkle" */; compatibilityVersion = "Xcode 3.2"; @@ -1367,7 +1367,9 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941CA0D94A70100DD942E /* ConfigFrameworkDebug.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; + SDKROOT = macosx; }; name = Debug; }; @@ -1375,19 +1377,26 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941D50D94A70100DD942E /* ConfigFrameworkRelease.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; + SDKROOT = macosx; }; name = Release; }; 1DEB91B208733DA50010E9CD /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + ONLY_ACTIVE_ARCH = YES; + SDKROOT = macosx; + VALID_ARCHS = x86_64; }; name = Debug; }; 1DEB91B308733DA50010E9CD /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + SDKROOT = macosx; + VALID_ARCHS = x86_64; }; name = Release; }; @@ -1396,6 +1405,7 @@ baseConfigurationReference = FA1941D30D94A70100DD942E /* ConfigRelaunchDebug.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = NO; GCC_DYNAMIC_NO_PIC = NO; @@ -1412,6 +1422,7 @@ AppKit, ); PRODUCT_NAME = finish_installation; + SDKROOT = macosx; }; name = Debug; }; @@ -1420,6 +1431,7 @@ baseConfigurationReference = FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; COPY_PHASE_STRIP = YES; DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; @@ -1435,6 +1447,7 @@ AppKit, ); PRODUCT_NAME = finish_installation; + SDKROOT = macosx; ZERO_LINK = NO; }; name = Release; @@ -1444,6 +1457,7 @@ baseConfigurationReference = FA1941D40D94A70100DD942E /* ConfigRelaunchRelease.xcconfig */; buildSettings = { ALWAYS_SEARCH_USER_PATHS = NO; + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; GCC_MODEL_TUNING = G5; GCC_PRECOMPILE_PREFIX_HEADER = YES; @@ -1457,6 +1471,7 @@ AppKit, ); PRODUCT_NAME = finish_installation; + SDKROOT = macosx; }; name = "Release (GC dual-mode; 10.5+)"; }; @@ -1464,6 +1479,8 @@ isa = XCBuildConfiguration; baseConfigurationReference = 5D06E8F20FD68D21005AE3F6 /* ConfigBinaryDeltaDebug.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + SDKROOT = macosx; }; name = Debug; }; @@ -1471,6 +1488,8 @@ isa = XCBuildConfiguration; baseConfigurationReference = 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + SDKROOT = macosx; }; name = Release; }; @@ -1478,12 +1497,16 @@ isa = XCBuildConfiguration; baseConfigurationReference = 5D06E8F30FD68D21005AE3F6 /* ConfigBinaryDeltaRelease.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; + SDKROOT = macosx; }; name = "Release (GC dual-mode; 10.5+)"; }; 61072EAD0DF263BD008FE88B /* Release (GC dual-mode; 10.5+) */ = { isa = XCBuildConfiguration; buildSettings = { + SDKROOT = macosx; + VALID_ARCHS = x86_64; }; name = "Release (GC dual-mode; 10.5+)"; }; @@ -1491,7 +1514,10 @@ isa = XCBuildConfiguration; baseConfigurationReference = 61072EB20DF2640C008FE88B /* ConfigFrameworkReleaseGCSupport.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; + GCC_ENABLE_OBJC_GC = unsupported; + SDKROOT = macosx; }; name = "Release (GC dual-mode; 10.5+)"; }; @@ -1499,7 +1525,10 @@ isa = XCBuildConfiguration; baseConfigurationReference = 615409A8103BA09100125AF1 /* ConfigTestAppReleaseGCSupport.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; + GCC_ENABLE_OBJC_GC = unsupported; + SDKROOT = macosx; }; name = "Release (GC dual-mode; 10.5+)"; }; @@ -1507,7 +1536,10 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA302AFD109D13190060F891 /* ConfigUnitTestReleaseGCSupport.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; + GCC_ENABLE_OBJC_GC = unsupported; + SDKROOT = macosx; }; name = "Release (GC dual-mode; 10.5+)"; }; @@ -1515,7 +1547,9 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA3AAF3A1050B273004B3130 /* ConfigUnitTestDebug.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; + SDKROOT = macosx; }; name = Debug; }; @@ -1523,7 +1557,9 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA3AAF391050B273004B3130 /* ConfigUnitTestRelease.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; + SDKROOT = macosx; }; name = Release; }; @@ -1531,7 +1567,9 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941CB0D94A70100DD942E /* ConfigTestAppDebug.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; + SDKROOT = macosx; }; name = Debug; }; @@ -1539,7 +1577,9 @@ isa = XCBuildConfiguration; baseConfigurationReference = FA1941D20D94A70100DD942E /* ConfigTestAppRelease.xcconfig */; buildSettings = { + ARCHS = "$(ARCHS_STANDARD)"; COMBINE_HIDPI_IMAGES = YES; + SDKROOT = macosx; }; name = Release; }; diff --git a/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme b/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme index 9b8b9ad7..67ac63e6 100644 --- a/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme +++ b/Sparkle.xcodeproj/xcshareddata/xcschemes/Sparkle.xcscheme @@ -1,6 +1,6 @@