From 2cc24161387ef9c8d75e6a18307b96f13436b749 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=89=E6=97=AD?= Date: Sun, 11 Oct 2015 17:35:53 +0800 Subject: [PATCH 1/2] Do not use Fabric when building for debug --- beauties/AppDelegate.swift | 4 +++- beauty.xcodeproj/project.pbxproj | 7 ++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/beauties/AppDelegate.swift b/beauties/AppDelegate.swift index 3e3c08d..eb55352 100644 --- a/beauties/AppDelegate.swift +++ b/beauties/AppDelegate.swift @@ -18,7 +18,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate { func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { // Override point for customization after application launch. - Fabric.with([Crashlytics()]) + if !DEBUG { + Fabric.with([Crashlytics()]) + } UITabBar.appearance().tintColor = ThemeColor UINavigationBar.appearance().tintColor = ThemeColor UITableViewCell.appearance().tintColor = ThemeColor diff --git a/beauty.xcodeproj/project.pbxproj b/beauty.xcodeproj/project.pbxproj index f8ef4e4..ca245a3 100644 --- a/beauty.xcodeproj/project.pbxproj +++ b/beauty.xcodeproj/project.pbxproj @@ -198,7 +198,7 @@ 4B1366381B3EF8A100986654 /* Sources */, 4B1366391B3EF8A100986654 /* Frameworks */, 4B13663A1B3EF8A100986654 /* Resources */, - 4BD0DD3C1B42C7FC00F08CF5 /* ShellScript */, + 4BD0DD3C1B42C7FC00F08CF5 /* Run Script */, 4BE566CF1B74F1B10079197A /* ShellScript */, ); buildRules = ( @@ -293,7 +293,7 @@ /* End PBXResourcesBuildPhase section */ /* Begin PBXShellScriptBuildPhase section */ - 4BD0DD3C1B42C7FC00F08CF5 /* ShellScript */ = { + 4BD0DD3C1B42C7FC00F08CF5 /* Run Script */ = { isa = PBXShellScriptBuildPhase; buildActionMask = 2147483647; files = ( @@ -302,6 +302,7 @@ "$(SRCROOT)/Carthage/Build/iOS/Kingfisher.framework", "$(SRCROOT)/Carthage/Build/iOS/Alamofire.framework", ); + name = "Run Script"; outputPaths = ( ); runOnlyForDeploymentPostprocessing = 0; @@ -319,7 +320,7 @@ ); runOnlyForDeploymentPostprocessing = 0; shellPath = /bin/sh; - shellScript = "./Fabric.framework/run 5b6d196a58f4acbc481f40758c365e9b14ae8732 3490fc62e207b8c7ec5ae2d4a8578db972041bdd761c9d59f51f7b5ca63b611f"; + shellScript = "if [ \"${CONFIGURATION}\" = \"Release\" ]; then\n\n./Fabric.framework/run 5b6d196a58f4acbc481f40758c365e9b14ae8732 3490fc62e207b8c7ec5ae2d4a8578db972041bdd761c9d59f51f7b5ca63b611f\n\nfi\n"; }; /* End PBXShellScriptBuildPhase section */ From c8592d2b882b8351f173d14dcbaff462f9c90961 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=98=89=E6=97=AD?= Date: Sun, 11 Oct 2015 17:36:05 +0800 Subject: [PATCH 2/2] update Kingfisher --- Cartfile.resolved | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cartfile.resolved b/Cartfile.resolved index 638ada6..5c650c0 100644 --- a/Cartfile.resolved +++ b/Cartfile.resolved @@ -1,2 +1,2 @@ github "Alamofire/Alamofire" "2.0.2" -github "onevcat/Kingfisher" "1.6.0" +github "onevcat/Kingfisher" "1.6.1"