diff --git a/Blog.xcodeproj/project.pbxproj b/Blog.xcodeproj/project.pbxproj index 59058f0..8a550ff 100644 --- a/Blog.xcodeproj/project.pbxproj +++ b/Blog.xcodeproj/project.pbxproj @@ -120,6 +120,7 @@ 7B08B3EE1AF9CAD300435579 /* MainInterface.storyboard */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; path = MainInterface.storyboard; sourceTree = ""; }; 7B08B3FF1AF9D3E300435579 /* SamhuriNet.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SamhuriNet.h; sourceTree = ""; }; 7B08B4001AF9D3E300435579 /* SamhuriNet.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SamhuriNet.m; sourceTree = ""; }; + 7B08B4031AF9D99C00435579 /* Blog-Prefix.pch */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = "Blog-Prefix.pch"; sourceTree = ""; }; 7B2B434F1AED5BA500BAC4E2 /* Functions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = Functions.h; sourceTree = ""; }; 7B2B43501AED5BA500BAC4E2 /* Functions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = Functions.m; sourceTree = ""; }; 7B4070521AE46BC9000C2E43 /* auth.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = auth.json; sourceTree = ""; }; @@ -306,6 +307,7 @@ 7B4070521AE46BC9000C2E43 /* auth.json */, 7B5C4BDD19F2606900667D48 /* Info.plist */, 7B5C4BDE19F2606900667D48 /* main.m */, + 7B08B4031AF9D99C00435579 /* Blog-Prefix.pch */, ); name = "Supporting Files"; sourceTree = ""; @@ -763,6 +765,7 @@ GCC_C_LANGUAGE_STANDARD = gnu99; GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREFIX_HEADER = "Blog/Blog-Prefix.pch"; GCC_PREPROCESSOR_DEFINITIONS = ( "DEBUG=1", "$(inherited)", @@ -804,6 +807,7 @@ ENABLE_NS_ASSERTIONS = NO; ENABLE_STRICT_OBJC_MSGSEND = YES; GCC_C_LANGUAGE_STANDARD = gnu99; + GCC_PREFIX_HEADER = "Blog/Blog-Prefix.pch"; GCC_WARN_64_TO_32_BIT_CONVERSION = YES; GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; GCC_WARN_UNDECLARED_SELECTOR = YES; @@ -825,6 +829,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; DEBUG_INFORMATION_FORMAT = dwarf; + GCC_PRECOMPILE_PREFIX_HEADER = YES; INFOPLIST_FILE = Blog/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; @@ -837,6 +842,7 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_IDENTITY = "iPhone Developer"; + GCC_PRECOMPILE_PREFIX_HEADER = YES; INFOPLIST_FILE = Blog/Info.plist; LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; PRODUCT_NAME = "$(TARGET_NAME)"; diff --git a/Blog/Blog-Prefix.pch b/Blog/Blog-Prefix.pch new file mode 100644 index 0000000..304ba4d --- /dev/null +++ b/Blog/Blog-Prefix.pch @@ -0,0 +1,15 @@ +// +// Blog-Prefix.pch +// Blog +// +// Created by Sami Samhuri on 2015-05-05. +// Copyright (c) 2015 Guru Logic Inc. All rights reserved. +// + +#import + +#ifdef DEBUG +static const int ddLogLevel = LOG_LEVEL_VERBOSE; +#else +static const int ddLogLevel = LOG_LEVEL_WARN; +#endif