From c4298f7f0908e1d441d3cccab694d13fcfea7055 Mon Sep 17 00:00:00 2001 From: "Jason C. Leach" Date: Thu, 14 Nov 2024 15:57:03 -0800 Subject: [PATCH] fix: try change for icon (#2272) Signed-off-by: Jason C. Leach --- app/ios/AriesBifold.xcodeproj/project.pbxproj | 4 ++-- app/ios/AriesBifold/AppDelegate.m | 8 ++++++-- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/app/ios/AriesBifold.xcodeproj/project.pbxproj b/app/ios/AriesBifold.xcodeproj/project.pbxproj index ee5fd061..368e8127 100644 --- a/app/ios/AriesBifold.xcodeproj/project.pbxproj +++ b/app/ios/AriesBifold.xcodeproj/project.pbxproj @@ -534,7 +534,7 @@ baseConfigurationReference = 6228B39BEBDEB177D0C79D99 /* Pods-AriesBifold.debug.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; + ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AriesBifold/AriesBifold.entitlements; CURRENT_PROJECT_VERSION = 444; @@ -573,7 +573,7 @@ baseConfigurationReference = CD48035C19AD8C07DE719567 /* Pods-AriesBifold.release.xcconfig */; buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; + ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; CLANG_ENABLE_MODULES = YES; CODE_SIGN_ENTITLEMENTS = AriesBifold/AriesBifold.entitlements; CURRENT_PROJECT_VERSION = 1; diff --git a/app/ios/AriesBifold/AppDelegate.m b/app/ios/AriesBifold/AppDelegate.m index 43747997..4000604f 100644 --- a/app/ios/AriesBifold/AppDelegate.m +++ b/app/ios/AriesBifold/AppDelegate.m @@ -17,6 +17,8 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:( // They will be passed down to the ViewController used by React Native. self.initialProps = @{}; + // Because certain file operations can reset resource values, we + // excluded file’s resource values each time the application starts. [self excludeDotAFJFolderFromBackup]; return [super application:application didFinishLaunchingWithOptions:launchOptions]; @@ -68,8 +70,10 @@ - (void)excludeDotAFJFolderFromBackup { forKey:NSURLIsExcludedFromBackupKey error:&error]; - if (!success) { - NSLog(@"Error excluding folder %@ from backup: %@", folderName, error); + if (success) { + NSLog(@"Excluded folder %@ from backup.", folderName); + } else { + NSLog(@"Error excluding folder %@ from backup: %@", folderName, error); } }