From dd1615f0e385a3f6d56d95363407a338e37044e7 Mon Sep 17 00:00:00 2001 From: Thomas Ricouard Date: Sun, 5 May 2024 17:30:09 +0200 Subject: [PATCH] Fix widget entitlements --- IceCubesApp.xcodeproj/project.pbxproj | 8 +++----- ...esAppWidgetsExtensionExtension.entitlements | 4 ++++ .../LatestPostsWidget.swift | 1 + ...WidgetsExtensionExtensionDebug.entitlements | 18 ------------------ 4 files changed, 8 insertions(+), 23 deletions(-) rename IceCubesAppWidgetsExtensionExtension.entitlements => IceCubesAppWidgetsExtension/IceCubesAppWidgetsExtensionExtension.entitlements (76%) delete mode 100644 IceCubesAppWidgetsExtensionExtensionDebug.entitlements diff --git a/IceCubesApp.xcodeproj/project.pbxproj b/IceCubesApp.xcodeproj/project.pbxproj index c50de191..931488fa 100644 --- a/IceCubesApp.xcodeproj/project.pbxproj +++ b/IceCubesApp.xcodeproj/project.pbxproj @@ -261,7 +261,6 @@ 9F7788D32BE652B2004E6BEF /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 9F7788D72BE652B2004E6BEF /* IceCubesAppWidgetsExtensionExtension.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = IceCubesAppWidgetsExtensionExtension.entitlements; sourceTree = ""; }; 9F7788E72BE65533004E6BEF /* AppAccountEntity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppAccountEntity.swift; sourceTree = ""; }; - 9F7788EB2BE65689004E6BEF /* IceCubesAppWidgetsExtensionExtensionDebug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = IceCubesAppWidgetsExtensionExtensionDebug.entitlements; sourceTree = ""; }; 9F7788EC2BE78D75004E6BEF /* TimelineFilterEntity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimelineFilterEntity.swift; sourceTree = ""; }; 9F7D939529800B0300EE6B7A /* IceCubesApp-release.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; path = "IceCubesApp-release.xcconfig"; sourceTree = ""; }; 9F7D939929805DBD00EE6B7A /* AccountSettingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AccountSettingView.swift; sourceTree = ""; }; @@ -472,6 +471,7 @@ 9F7788CA2BE652B1004E6BEF /* IceCubesAppWidgetsExtension */ = { isa = PBXGroup; children = ( + 9F7788D72BE652B2004E6BEF /* IceCubesAppWidgetsExtensionExtension.entitlements */, 9F7788CB2BE652B1004E6BEF /* IceCubesAppWidgetsExtensionBundle.swift */, 9F7788CD2BE652B1004E6BEF /* LatestPostsWidget.swift */, 9F7788CF2BE652B1004E6BEF /* IceCubesWidgetConfigurationIntent.swift */, @@ -542,8 +542,6 @@ 9FBFE630292A715500C250E9 = { isa = PBXGroup; children = ( - 9F7788EB2BE65689004E6BEF /* IceCubesAppWidgetsExtensionExtensionDebug.entitlements */, - 9F7788D72BE652B2004E6BEF /* IceCubesAppWidgetsExtensionExtension.entitlements */, DD31E2E5297FB68B00A4BE29 /* IceCubesApp.xcconfig */, 9F7D939529800B0300EE6B7A /* IceCubesApp-release.xcconfig */, 9FBFE63B292A715500C250E9 /* IceCubesApp */, @@ -1159,7 +1157,7 @@ buildSettings = { ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; - CODE_SIGN_ENTITLEMENTS = IceCubesAppWidgetsExtensionExtensionDebug.entitlements; + CODE_SIGN_ENTITLEMENTS = IceCubesAppWidgetsExtension/IceCubesAppWidgetsExtensionExtension.entitlements; CODE_SIGN_IDENTITY = "-"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; @@ -1195,7 +1193,7 @@ buildSettings = { ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground; - CODE_SIGN_ENTITLEMENTS = IceCubesAppWidgetsExtensionExtension.entitlements; + CODE_SIGN_ENTITLEMENTS = IceCubesAppWidgetsExtension/IceCubesAppWidgetsExtensionExtension.entitlements; CODE_SIGN_IDENTITY = "-"; "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "Apple Development"; diff --git a/IceCubesAppWidgetsExtensionExtension.entitlements b/IceCubesAppWidgetsExtension/IceCubesAppWidgetsExtensionExtension.entitlements similarity index 76% rename from IceCubesAppWidgetsExtensionExtension.entitlements rename to IceCubesAppWidgetsExtension/IceCubesAppWidgetsExtensionExtension.entitlements index a31bf1a4..6169e196 100644 --- a/IceCubesAppWidgetsExtensionExtension.entitlements +++ b/IceCubesAppWidgetsExtension/IceCubesAppWidgetsExtensionExtension.entitlements @@ -2,6 +2,10 @@ + keychain-access-groups + + $(AppIdentifierPrefix)$(BUNDLE_ID_PREFIX).IceCubesApp + com.apple.security.app-sandbox com.apple.security.application-groups diff --git a/IceCubesAppWidgetsExtension/LatestPostsWidget.swift b/IceCubesAppWidgetsExtension/LatestPostsWidget.swift index 24f7c3d2..8aa9a32e 100644 --- a/IceCubesAppWidgetsExtension/LatestPostsWidget.swift +++ b/IceCubesAppWidgetsExtension/LatestPostsWidget.swift @@ -85,6 +85,7 @@ struct LatestPostsWidgetView : View { ForEach(entry.statuses) { status in makeStatusView(status) } + Spacer() } .frame(maxWidth: .infinity) } diff --git a/IceCubesAppWidgetsExtensionExtensionDebug.entitlements b/IceCubesAppWidgetsExtensionExtensionDebug.entitlements deleted file mode 100644 index d59836e7..00000000 --- a/IceCubesAppWidgetsExtensionExtensionDebug.entitlements +++ /dev/null @@ -1,18 +0,0 @@ - - - - - com.apple.security.app-sandbox - - com.apple.security.application-groups - - group.com.thomasricouard.IceCubesApp - - com.apple.security.network.client - - keychain-access-groups - - $(AppIdentifierPrefix)$(BUNDLE_ID_PREFIX).IceCubesApp - - -