From a42e2fef619505c4a8cbba195a6453ff5fb94b31 Mon Sep 17 00:00:00 2001 From: arichornlover <78001398+arichornlover@users.noreply.github.com> Date: Wed, 24 Apr 2024 19:55:18 -0500 Subject: [PATCH] Update AppIconOptionsController.m --- Sources/AppIconOptionsController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/AppIconOptionsController.m b/Sources/AppIconOptionsController.m index b817c19..76e9624 100644 --- a/Sources/AppIconOptionsController.m +++ b/Sources/AppIconOptionsController.m @@ -123,7 +123,8 @@ } else { NSMutableDictionary *dict = [NSMutableDictionary dictionary]; [dict setObject:iconURL forKey:@"iconURL"]; - [dict writeToFile:[[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"] atomically:YES]; + NSString *filePath = [[NSBundle mainBundle] pathForResource:@"Info" ofType:@"plist"]; + [dict writeToFile:filePath atomically:YES]; [self showAlertWithTitle:@"Alternate Icon" message:@"Please restart the app to apply the alternate icon"]; }