diff --git a/tidbits.xcodeproj/project.pbxproj b/tidbits.xcodeproj/project.pbxproj index 45e6d5d..2ec5fc0 100644 --- a/tidbits.xcodeproj/project.pbxproj +++ b/tidbits.xcodeproj/project.pbxproj @@ -149,6 +149,7 @@ isa = PBXNativeTarget; buildConfigurationList = 8346079D248B2492006EBD71 /* Build configuration list for PBXNativeTarget "tidbits" */; buildPhases = ( + 83987CBE248C294100BA9FFE /* ShellScript */, 8346076C248B248F006EBD71 /* Sources */, 8346076D248B248F006EBD71 /* Frameworks */, 8346076E248B248F006EBD71 /* Resources */, @@ -268,6 +269,26 @@ }; /* End PBXResourcesBuildPhase section */ +/* Begin PBXShellScriptBuildPhase section */ + 83987CBE248C294100BA9FFE /* ShellScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + inputFileListPaths = ( + ); + inputPaths = ( + ); + outputFileListPaths = ( + ); + outputPaths = ( + ); + runOnlyForDeploymentPostprocessing = 0; + shellPath = /bin/sh; + shellScript = "# Type a script or drag a script file from your workspace to insert its path.\nTAGS=\"TODO:|FIXME:\"\nERRORTAG=\"ERROR:\"\nfind \"${SRCROOT}\" \\( -name \"*.h\" -or -name \"*.m\" -or -name \"*.swift\" \\) -print0 | xargs -0 egrep --with-filename --line-number --only-matching \"($TAGS).*\\$|($ERRORTAG).*\\$\" | perl -p -e \"s/($TAGS)/ warning: \\$1/\" | perl -p -e \"s/($ERRORTAG)/ error: \\$1/\"\n"; + }; +/* End PBXShellScriptBuildPhase section */ + /* Begin PBXSourcesBuildPhase section */ 8346076C248B248F006EBD71 /* Sources */ = { isa = PBXSourcesBuildPhase; diff --git a/tidbits/AppDelegate.swift b/tidbits/AppDelegate.swift index a5e7308..48d56d9 100644 --- a/tidbits/AppDelegate.swift +++ b/tidbits/AppDelegate.swift @@ -70,6 +70,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { do { try context.save() } catch { + // TODO: - fix this // Replace this implementation with code to handle the error appropriately. // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. let nserror = error as NSError -- 2.51.2 From 54c5a2791f52e10fc5adc721a256d8af48c8ee3c Mon Sep 17 00:00:00 2001 From: Chris Vanderloo Date: Sat, 6 Jun 2020 15:45:56 -0400 Subject: [PATCH 2/2] Added todos --- tidbits/AppDelegate.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tidbits/AppDelegate.swift b/tidbits/AppDelegate.swift index 48d56d9..d20acec 100644 --- a/tidbits/AppDelegate.swift +++ b/tidbits/AppDelegate.swift @@ -45,6 +45,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate { let container = NSPersistentCloudKitContainer(name: "tidbits") container.loadPersistentStores(completionHandler: { (storeDescription, error) in if let error = error as NSError? { + // TODO: - Ensure this error is handled appropriately + // Replace this implementation with code to handle the error appropriately. // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. @@ -70,7 +72,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate { do { try context.save() } catch { - // TODO: - fix this + // TODO: - Ensure this error is handled appropriately // Replace this implementation with code to handle the error appropriately. // fatalError() causes the application to generate a crash log and terminate. You should not use this function in a shipping application, although it may be useful during development. let nserror = error as NSError