├── SettingsTest ├── Settings.bundle │ ├── en.lproj │ │ └── Root.strings │ └── Root.plist ├── ViewController.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── SettingsBundleHelper.swift ├── Info.plist ├── Base.lproj │ ├── Main.storyboard │ └── LaunchScreen.storyboard └── AppDelegate.swift └── SettingsTest.xcodeproj ├── xcuserdata └── Abhi.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── xcschememanagement.plist │ └── SettingsTest.xcscheme ├── project.xcworkspace └── contents.xcworkspacedata └── project.pbxproj /SettingsTest/Settings.bundle/en.lproj/Root.strings: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/abhimuralidharan/SettingsBundleTest/HEAD/SettingsTest/Settings.bundle/en.lproj/Root.strings -------------------------------------------------------------------------------- /SettingsTest.xcodeproj/xcuserdata/Abhi.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /SettingsTest.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /SettingsTest.xcodeproj/xcuserdata/Abhi.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | SettingsTest.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 383A6C2F1E8B9A2600B58D54 16 | 17 | primary 18 | 19 | 20 | 21 | 22 | 23 | -------------------------------------------------------------------------------- /SettingsTest/ViewController.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ViewController.swift 3 | // SettingsTest 4 | // 5 | // Created by Abhilash on 29/03/17. 6 | // Copyright © 2017 Abhilash. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | class ViewController: UIViewController { 12 | 13 | override func viewDidLoad() { 14 | super.viewDidLoad() 15 | registerSettingsBundle() 16 | NotificationCenter.default.addObserver(self, selector: #selector(ViewController.defaultsChanged), name: UserDefaults.didChangeNotification, object: nil) 17 | defaultsChanged() 18 | } 19 | func registerSettingsBundle(){ 20 | let appDefaults = [String:AnyObject]() 21 | UserDefaults.standard.register(defaults: appDefaults) 22 | } 23 | func defaultsChanged(){ 24 | if UserDefaults.standard.bool(forKey: "RedThemeKey") { 25 | self.view.backgroundColor = UIColor.red 26 | 27 | } 28 | else { 29 | self.view.backgroundColor = UIColor.green 30 | } 31 | } 32 | 33 | deinit { //Not needed for iOS9 and above. ARC deals with the observer in higher versions. 34 | NotificationCenter.default.removeObserver(self) 35 | } 36 | } 37 | 38 | 39 | -------------------------------------------------------------------------------- /SettingsTest/Assets.xcassets/AppIcon.appiconset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "iphone", 5 | "size" : "29x29", 6 | "scale" : "2x" 7 | }, 8 | { 9 | "idiom" : "iphone", 10 | "size" : "29x29", 11 | "scale" : "3x" 12 | }, 13 | { 14 | "idiom" : "iphone", 15 | "size" : "40x40", 16 | "scale" : "2x" 17 | }, 18 | { 19 | "idiom" : "iphone", 20 | "size" : "40x40", 21 | "scale" : "3x" 22 | }, 23 | { 24 | "idiom" : "iphone", 25 | "size" : "60x60", 26 | "scale" : "2x" 27 | }, 28 | { 29 | "idiom" : "iphone", 30 | "size" : "60x60", 31 | "scale" : "3x" 32 | }, 33 | { 34 | "idiom" : "ipad", 35 | "size" : "29x29", 36 | "scale" : "1x" 37 | }, 38 | { 39 | "idiom" : "ipad", 40 | "size" : "29x29", 41 | "scale" : "2x" 42 | }, 43 | { 44 | "idiom" : "ipad", 45 | "size" : "40x40", 46 | "scale" : "1x" 47 | }, 48 | { 49 | "idiom" : "ipad", 50 | "size" : "40x40", 51 | "scale" : "2x" 52 | }, 53 | { 54 | "idiom" : "ipad", 55 | "size" : "76x76", 56 | "scale" : "1x" 57 | }, 58 | { 59 | "idiom" : "ipad", 60 | "size" : "76x76", 61 | "scale" : "2x" 62 | } 63 | ], 64 | "info" : { 65 | "version" : 1, 66 | "author" : "xcode" 67 | } 68 | } -------------------------------------------------------------------------------- /SettingsTest/SettingsBundleHelper.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SettingsBundleHelper.swift 3 | // vPremiere 4 | // 5 | // Created by Abhilash on 28/03/17. 6 | // Copyright © 2017 Mobiotics. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | class SettingsBundleHelper { 11 | struct SettingsBundleKeys { 12 | static let Reset = "RESET_APP_KEY" 13 | static let BuildVersionKey = "build_preference" 14 | static let AppVersionKey = "version_preference" 15 | static let RedThemeKey = "RedThemeKey" 16 | 17 | } 18 | class func checkAndExecuteSettings() { 19 | if UserDefaults.standard.bool(forKey: SettingsBundleKeys.Reset) { 20 | UserDefaults.standard.set(false, forKey: SettingsBundleKeys.Reset) 21 | let appDomain: String? = Bundle.main.bundleIdentifier 22 | UserDefaults.standard.removePersistentDomain(forName: appDomain!) 23 | // reset userDefaults.. 24 | // CoreDataDataModel().deleteAllData() 25 | // delete all other user data here.. 26 | } 27 | } 28 | 29 | class func setVersionAndBuildNumber() { 30 | let version: String = Bundle.main.object(forInfoDictionaryKey: "CFBundleShortVersionString") as! String 31 | UserDefaults.standard.set(version, forKey: "version_preference") 32 | let build: String = Bundle.main.object(forInfoDictionaryKey: "CFBundleVersion") as! String 33 | UserDefaults.standard.set(build, forKey: "build_preference") 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /SettingsTest/Settings.bundle/Root.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | StringsTable 6 | Root 7 | PreferenceSpecifiers 8 | 9 | 10 | Type 11 | PSToggleSwitchSpecifier 12 | Title 13 | RedTheme 14 | Key 15 | RedThemeKey 16 | DefaultValue 17 | 18 | 19 | 20 | Type 21 | PSToggleSwitchSpecifier 22 | Title 23 | Reset app 24 | Key 25 | RESET_APP_KEY 26 | DefaultValue 27 | 28 | 29 | 30 | Type 31 | PSGroupSpecifier 32 | Title 33 | APP INFO 34 | 35 | 36 | Type 37 | PSTitleValueSpecifier 38 | Title 39 | Version 40 | Key 41 | version_preference 42 | DefaultValue 43 | 1.0 44 | 45 | 46 | Type 47 | PSTitleValueSpecifier 48 | Title 49 | Build 50 | Key 51 | build_preference 52 | DefaultValue 53 | 1.0 54 | 55 | 56 | 57 | 58 | -------------------------------------------------------------------------------- /SettingsTest/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | APPL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | LSRequiresIPhoneOS 22 | 23 | UILaunchStoryboardName 24 | LaunchScreen 25 | UIMainStoryboardFile 26 | Main 27 | UIRequiredDeviceCapabilities 28 | 29 | armv7 30 | 31 | UISupportedInterfaceOrientations 32 | 33 | UIInterfaceOrientationPortrait 34 | UIInterfaceOrientationLandscapeLeft 35 | UIInterfaceOrientationLandscapeRight 36 | 37 | UISupportedInterfaceOrientations~ipad 38 | 39 | UIInterfaceOrientationPortrait 40 | UIInterfaceOrientationPortraitUpsideDown 41 | UIInterfaceOrientationLandscapeLeft 42 | UIInterfaceOrientationLandscapeRight 43 | 44 | 45 | 46 | -------------------------------------------------------------------------------- /SettingsTest/Base.lproj/Main.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /SettingsTest/Base.lproj/LaunchScreen.storyboard: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /SettingsTest/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // SettingsTest 4 | // 5 | // Created by Abhilash on 29/03/17. 6 | // Copyright © 2017 Abhilash. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | 17 | func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { 18 | // Override point for customization after application launch. 19 | return true 20 | } 21 | 22 | func applicationWillResignActive(_ application: UIApplication) { 23 | // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. 24 | // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. 25 | } 26 | 27 | func applicationDidEnterBackground(_ application: UIApplication) { 28 | // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. 29 | // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. 30 | } 31 | 32 | func applicationWillEnterForeground(_ application: UIApplication) { 33 | // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. 34 | } 35 | 36 | func applicationDidBecomeActive(_ application: UIApplication) { 37 | // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. 38 | SettingsBundleHelper.checkAndExecuteSettings() 39 | SettingsBundleHelper.setVersionAndBuildNumber() 40 | } 41 | 42 | func applicationWillTerminate(_ application: UIApplication) { 43 | // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. 44 | } 45 | 46 | 47 | } 48 | 49 | -------------------------------------------------------------------------------- /SettingsTest.xcodeproj/xcuserdata/Abhi.xcuserdatad/xcschemes/SettingsTest.xcscheme: -------------------------------------------------------------------------------- 1 | 2 | 5 | 8 | 9 | 15 | 21 | 22 | 23 | 24 | 25 | 30 | 31 | 32 | 33 | 39 | 40 | 41 | 42 | 43 | 44 | 54 | 56 | 62 | 63 | 64 | 65 | 66 | 67 | 73 | 75 | 81 | 82 | 83 | 84 | 86 | 87 | 90 | 91 | 92 | -------------------------------------------------------------------------------- /SettingsTest.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXBuildFile section */ 10 | 383A6C341E8B9A2600B58D54 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 383A6C331E8B9A2600B58D54 /* AppDelegate.swift */; }; 11 | 383A6C361E8B9A2600B58D54 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 383A6C351E8B9A2600B58D54 /* ViewController.swift */; }; 12 | 383A6C391E8B9A2600B58D54 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 383A6C371E8B9A2600B58D54 /* Main.storyboard */; }; 13 | 383A6C3B1E8B9A2600B58D54 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 383A6C3A1E8B9A2600B58D54 /* Assets.xcassets */; }; 14 | 383A6C3E1E8B9A2600B58D54 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 383A6C3C1E8B9A2600B58D54 /* LaunchScreen.storyboard */; }; 15 | 383A6C461E8B9A3800B58D54 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 383A6C451E8B9A3800B58D54 /* Settings.bundle */; }; 16 | 383A6C481E8B9D9400B58D54 /* SettingsBundleHelper.swift in Sources */ = {isa = PBXBuildFile; fileRef = 383A6C471E8B9D9400B58D54 /* SettingsBundleHelper.swift */; }; 17 | /* End PBXBuildFile section */ 18 | 19 | /* Begin PBXFileReference section */ 20 | 383A6C301E8B9A2600B58D54 /* SettingsTest.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = SettingsTest.app; sourceTree = BUILT_PRODUCTS_DIR; }; 21 | 383A6C331E8B9A2600B58D54 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; 22 | 383A6C351E8B9A2600B58D54 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; 23 | 383A6C381E8B9A2600B58D54 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; 24 | 383A6C3A1E8B9A2600B58D54 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; 25 | 383A6C3D1E8B9A2600B58D54 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; 26 | 383A6C3F1E8B9A2600B58D54 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 27 | 383A6C451E8B9A3800B58D54 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = ""; }; 28 | 383A6C471E8B9D9400B58D54 /* SettingsBundleHelper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SettingsBundleHelper.swift; sourceTree = ""; }; 29 | /* End PBXFileReference section */ 30 | 31 | /* Begin PBXFrameworksBuildPhase section */ 32 | 383A6C2D1E8B9A2600B58D54 /* Frameworks */ = { 33 | isa = PBXFrameworksBuildPhase; 34 | buildActionMask = 2147483647; 35 | files = ( 36 | ); 37 | runOnlyForDeploymentPostprocessing = 0; 38 | }; 39 | /* End PBXFrameworksBuildPhase section */ 40 | 41 | /* Begin PBXGroup section */ 42 | 383A6C271E8B9A2500B58D54 = { 43 | isa = PBXGroup; 44 | children = ( 45 | 383A6C321E8B9A2600B58D54 /* SettingsTest */, 46 | 383A6C311E8B9A2600B58D54 /* Products */, 47 | ); 48 | sourceTree = ""; 49 | }; 50 | 383A6C311E8B9A2600B58D54 /* Products */ = { 51 | isa = PBXGroup; 52 | children = ( 53 | 383A6C301E8B9A2600B58D54 /* SettingsTest.app */, 54 | ); 55 | name = Products; 56 | sourceTree = ""; 57 | }; 58 | 383A6C321E8B9A2600B58D54 /* SettingsTest */ = { 59 | isa = PBXGroup; 60 | children = ( 61 | 383A6C331E8B9A2600B58D54 /* AppDelegate.swift */, 62 | 383A6C351E8B9A2600B58D54 /* ViewController.swift */, 63 | 383A6C371E8B9A2600B58D54 /* Main.storyboard */, 64 | 383A6C3A1E8B9A2600B58D54 /* Assets.xcassets */, 65 | 383A6C3C1E8B9A2600B58D54 /* LaunchScreen.storyboard */, 66 | 383A6C3F1E8B9A2600B58D54 /* Info.plist */, 67 | 383A6C471E8B9D9400B58D54 /* SettingsBundleHelper.swift */, 68 | 383A6C451E8B9A3800B58D54 /* Settings.bundle */, 69 | ); 70 | path = SettingsTest; 71 | sourceTree = ""; 72 | }; 73 | /* End PBXGroup section */ 74 | 75 | /* Begin PBXNativeTarget section */ 76 | 383A6C2F1E8B9A2600B58D54 /* SettingsTest */ = { 77 | isa = PBXNativeTarget; 78 | buildConfigurationList = 383A6C421E8B9A2600B58D54 /* Build configuration list for PBXNativeTarget "SettingsTest" */; 79 | buildPhases = ( 80 | 383A6C2C1E8B9A2600B58D54 /* Sources */, 81 | 383A6C2D1E8B9A2600B58D54 /* Frameworks */, 82 | 383A6C2E1E8B9A2600B58D54 /* Resources */, 83 | ); 84 | buildRules = ( 85 | ); 86 | dependencies = ( 87 | ); 88 | name = SettingsTest; 89 | productName = SettingsTest; 90 | productReference = 383A6C301E8B9A2600B58D54 /* SettingsTest.app */; 91 | productType = "com.apple.product-type.application"; 92 | }; 93 | /* End PBXNativeTarget section */ 94 | 95 | /* Begin PBXProject section */ 96 | 383A6C281E8B9A2500B58D54 /* Project object */ = { 97 | isa = PBXProject; 98 | attributes = { 99 | LastSwiftUpdateCheck = 0820; 100 | LastUpgradeCheck = 0820; 101 | ORGANIZATIONNAME = Abhilash; 102 | TargetAttributes = { 103 | 383A6C2F1E8B9A2600B58D54 = { 104 | CreatedOnToolsVersion = 8.2.1; 105 | DevelopmentTeam = D5248MR3YC; 106 | ProvisioningStyle = Automatic; 107 | }; 108 | }; 109 | }; 110 | buildConfigurationList = 383A6C2B1E8B9A2500B58D54 /* Build configuration list for PBXProject "SettingsTest" */; 111 | compatibilityVersion = "Xcode 3.2"; 112 | developmentRegion = English; 113 | hasScannedForEncodings = 0; 114 | knownRegions = ( 115 | en, 116 | Base, 117 | ); 118 | mainGroup = 383A6C271E8B9A2500B58D54; 119 | productRefGroup = 383A6C311E8B9A2600B58D54 /* Products */; 120 | projectDirPath = ""; 121 | projectRoot = ""; 122 | targets = ( 123 | 383A6C2F1E8B9A2600B58D54 /* SettingsTest */, 124 | ); 125 | }; 126 | /* End PBXProject section */ 127 | 128 | /* Begin PBXResourcesBuildPhase section */ 129 | 383A6C2E1E8B9A2600B58D54 /* Resources */ = { 130 | isa = PBXResourcesBuildPhase; 131 | buildActionMask = 2147483647; 132 | files = ( 133 | 383A6C461E8B9A3800B58D54 /* Settings.bundle in Resources */, 134 | 383A6C3E1E8B9A2600B58D54 /* LaunchScreen.storyboard in Resources */, 135 | 383A6C3B1E8B9A2600B58D54 /* Assets.xcassets in Resources */, 136 | 383A6C391E8B9A2600B58D54 /* Main.storyboard in Resources */, 137 | ); 138 | runOnlyForDeploymentPostprocessing = 0; 139 | }; 140 | /* End PBXResourcesBuildPhase section */ 141 | 142 | /* Begin PBXSourcesBuildPhase section */ 143 | 383A6C2C1E8B9A2600B58D54 /* Sources */ = { 144 | isa = PBXSourcesBuildPhase; 145 | buildActionMask = 2147483647; 146 | files = ( 147 | 383A6C361E8B9A2600B58D54 /* ViewController.swift in Sources */, 148 | 383A6C481E8B9D9400B58D54 /* SettingsBundleHelper.swift in Sources */, 149 | 383A6C341E8B9A2600B58D54 /* AppDelegate.swift in Sources */, 150 | ); 151 | runOnlyForDeploymentPostprocessing = 0; 152 | }; 153 | /* End PBXSourcesBuildPhase section */ 154 | 155 | /* Begin PBXVariantGroup section */ 156 | 383A6C371E8B9A2600B58D54 /* Main.storyboard */ = { 157 | isa = PBXVariantGroup; 158 | children = ( 159 | 383A6C381E8B9A2600B58D54 /* Base */, 160 | ); 161 | name = Main.storyboard; 162 | sourceTree = ""; 163 | }; 164 | 383A6C3C1E8B9A2600B58D54 /* LaunchScreen.storyboard */ = { 165 | isa = PBXVariantGroup; 166 | children = ( 167 | 383A6C3D1E8B9A2600B58D54 /* Base */, 168 | ); 169 | name = LaunchScreen.storyboard; 170 | sourceTree = ""; 171 | }; 172 | /* End PBXVariantGroup section */ 173 | 174 | /* Begin XCBuildConfiguration section */ 175 | 383A6C401E8B9A2600B58D54 /* Debug */ = { 176 | isa = XCBuildConfiguration; 177 | buildSettings = { 178 | ALWAYS_SEARCH_USER_PATHS = NO; 179 | CLANG_ANALYZER_NONNULL = YES; 180 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 181 | CLANG_CXX_LIBRARY = "libc++"; 182 | CLANG_ENABLE_MODULES = YES; 183 | CLANG_ENABLE_OBJC_ARC = YES; 184 | CLANG_WARN_BOOL_CONVERSION = YES; 185 | CLANG_WARN_CONSTANT_CONVERSION = YES; 186 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 187 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 188 | CLANG_WARN_EMPTY_BODY = YES; 189 | CLANG_WARN_ENUM_CONVERSION = YES; 190 | CLANG_WARN_INFINITE_RECURSION = YES; 191 | CLANG_WARN_INT_CONVERSION = YES; 192 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 193 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 194 | CLANG_WARN_UNREACHABLE_CODE = YES; 195 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 196 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 197 | COPY_PHASE_STRIP = NO; 198 | DEBUG_INFORMATION_FORMAT = dwarf; 199 | ENABLE_STRICT_OBJC_MSGSEND = YES; 200 | ENABLE_TESTABILITY = YES; 201 | GCC_C_LANGUAGE_STANDARD = gnu99; 202 | GCC_DYNAMIC_NO_PIC = NO; 203 | GCC_NO_COMMON_BLOCKS = YES; 204 | GCC_OPTIMIZATION_LEVEL = 0; 205 | GCC_PREPROCESSOR_DEFINITIONS = ( 206 | "DEBUG=1", 207 | "$(inherited)", 208 | ); 209 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 210 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 211 | GCC_WARN_UNDECLARED_SELECTOR = YES; 212 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 213 | GCC_WARN_UNUSED_FUNCTION = YES; 214 | GCC_WARN_UNUSED_VARIABLE = YES; 215 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 216 | MTL_ENABLE_DEBUG_INFO = YES; 217 | ONLY_ACTIVE_ARCH = YES; 218 | SDKROOT = iphoneos; 219 | SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; 220 | SWIFT_OPTIMIZATION_LEVEL = "-Onone"; 221 | TARGETED_DEVICE_FAMILY = "1,2"; 222 | }; 223 | name = Debug; 224 | }; 225 | 383A6C411E8B9A2600B58D54 /* Release */ = { 226 | isa = XCBuildConfiguration; 227 | buildSettings = { 228 | ALWAYS_SEARCH_USER_PATHS = NO; 229 | CLANG_ANALYZER_NONNULL = YES; 230 | CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; 231 | CLANG_CXX_LIBRARY = "libc++"; 232 | CLANG_ENABLE_MODULES = YES; 233 | CLANG_ENABLE_OBJC_ARC = YES; 234 | CLANG_WARN_BOOL_CONVERSION = YES; 235 | CLANG_WARN_CONSTANT_CONVERSION = YES; 236 | CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; 237 | CLANG_WARN_DOCUMENTATION_COMMENTS = YES; 238 | CLANG_WARN_EMPTY_BODY = YES; 239 | CLANG_WARN_ENUM_CONVERSION = YES; 240 | CLANG_WARN_INFINITE_RECURSION = YES; 241 | CLANG_WARN_INT_CONVERSION = YES; 242 | CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; 243 | CLANG_WARN_SUSPICIOUS_MOVE = YES; 244 | CLANG_WARN_UNREACHABLE_CODE = YES; 245 | CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; 246 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 247 | COPY_PHASE_STRIP = NO; 248 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 249 | ENABLE_NS_ASSERTIONS = NO; 250 | ENABLE_STRICT_OBJC_MSGSEND = YES; 251 | GCC_C_LANGUAGE_STANDARD = gnu99; 252 | GCC_NO_COMMON_BLOCKS = YES; 253 | GCC_WARN_64_TO_32_BIT_CONVERSION = YES; 254 | GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; 255 | GCC_WARN_UNDECLARED_SELECTOR = YES; 256 | GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; 257 | GCC_WARN_UNUSED_FUNCTION = YES; 258 | GCC_WARN_UNUSED_VARIABLE = YES; 259 | IPHONEOS_DEPLOYMENT_TARGET = 10.2; 260 | MTL_ENABLE_DEBUG_INFO = NO; 261 | SDKROOT = iphoneos; 262 | SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; 263 | TARGETED_DEVICE_FAMILY = "1,2"; 264 | VALIDATE_PRODUCT = YES; 265 | }; 266 | name = Release; 267 | }; 268 | 383A6C431E8B9A2600B58D54 /* Debug */ = { 269 | isa = XCBuildConfiguration; 270 | buildSettings = { 271 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 272 | DEVELOPMENT_TEAM = D5248MR3YC; 273 | INFOPLIST_FILE = SettingsTest/Info.plist; 274 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 275 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 276 | PRODUCT_BUNDLE_IDENTIFIER = com.abhilash.SettingsTest; 277 | PRODUCT_NAME = "$(TARGET_NAME)"; 278 | SWIFT_VERSION = 3.0; 279 | }; 280 | name = Debug; 281 | }; 282 | 383A6C441E8B9A2600B58D54 /* Release */ = { 283 | isa = XCBuildConfiguration; 284 | buildSettings = { 285 | ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; 286 | DEVELOPMENT_TEAM = D5248MR3YC; 287 | INFOPLIST_FILE = SettingsTest/Info.plist; 288 | IPHONEOS_DEPLOYMENT_TARGET = 9.0; 289 | LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; 290 | PRODUCT_BUNDLE_IDENTIFIER = com.abhilash.SettingsTest; 291 | PRODUCT_NAME = "$(TARGET_NAME)"; 292 | SWIFT_VERSION = 3.0; 293 | }; 294 | name = Release; 295 | }; 296 | /* End XCBuildConfiguration section */ 297 | 298 | /* Begin XCConfigurationList section */ 299 | 383A6C2B1E8B9A2500B58D54 /* Build configuration list for PBXProject "SettingsTest" */ = { 300 | isa = XCConfigurationList; 301 | buildConfigurations = ( 302 | 383A6C401E8B9A2600B58D54 /* Debug */, 303 | 383A6C411E8B9A2600B58D54 /* Release */, 304 | ); 305 | defaultConfigurationIsVisible = 0; 306 | defaultConfigurationName = Release; 307 | }; 308 | 383A6C421E8B9A2600B58D54 /* Build configuration list for PBXNativeTarget "SettingsTest" */ = { 309 | isa = XCConfigurationList; 310 | buildConfigurations = ( 311 | 383A6C431E8B9A2600B58D54 /* Debug */, 312 | 383A6C441E8B9A2600B58D54 /* Release */, 313 | ); 314 | defaultConfigurationIsVisible = 0; 315 | }; 316 | /* End XCConfigurationList section */ 317 | }; 318 | rootObject = 383A6C281E8B9A2500B58D54 /* Project object */; 319 | } 320 | --------------------------------------------------------------------------------