From 50efe94839235e39cc2b09454e3e4f53527b3137 Mon Sep 17 00:00:00 2001 From: Arkadiusz Fal Date: Tue, 18 Nov 2025 16:59:17 +0100 Subject: [PATCH] Add macOS-specific entitlements for MPV backend Enable Allow Unsigned Executable Memory and Disable Library Validation entitlements for macOS target only to support MPV player backend. --- Yattee.xcodeproj/project.pbxproj | 6 ++++-- macOS/Yattee (macOS).entitlements | 23 +++++++++++++++++++++++ 2 files changed, 27 insertions(+), 2 deletions(-) create mode 100644 macOS/Yattee (macOS).entitlements diff --git a/Yattee.xcodeproj/project.pbxproj b/Yattee.xcodeproj/project.pbxproj index 7d6c147b..2f0e22d3 100644 --- a/Yattee.xcodeproj/project.pbxproj +++ b/Yattee.xcodeproj/project.pbxproj @@ -1507,6 +1507,7 @@ 37E21DC52CDE528A008DF47C /* ta */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = ta; path = ta.lproj/Localizable.strings; sourceTree = ""; }; 37E32DD42EC0D63600A63F29 /* TVOSPlainToggleStyle.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TVOSPlainToggleStyle.swift; sourceTree = ""; }; 37E64DD026D597EB00C71877 /* SubscribedChannelsModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SubscribedChannelsModel.swift; sourceTree = ""; }; + 37E6AF002ECCCCD50001DB2B /* Yattee (macOS).entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Yattee (macOS).entitlements"; sourceTree = ""; }; 37E6D79B2944AE1A00550C3D /* FeedModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FeedModel.swift; sourceTree = ""; }; 37E6D79F2944CD3800550C3D /* CacheStatusHeader.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CacheStatusHeader.swift; sourceTree = ""; }; 37E70922271CD43000D34DDE /* WelcomeScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WelcomeScreen.swift; sourceTree = ""; }; @@ -2221,6 +2222,7 @@ 37BE0BD826A214500092E2DB /* macOS */ = { isa = PBXGroup; children = ( + 37E6AF002ECCCCD50001DB2B /* Yattee (macOS).entitlements */, 374C0542272496E4009BDDBE /* AppDelegate.swift */, 37FD43DB270470B70073EE42 /* InstancesSettings.swift */, 37B7CFED2A19789F001B0564 /* MacOSPiPDelegate.swift */, @@ -4490,7 +4492,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; - CODE_SIGN_ENTITLEMENTS = Shared/Yattee.entitlements; + CODE_SIGN_ENTITLEMENTS = "macOS/Yattee (macOS).entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; CODE_SIGN_STYLE = Automatic; COMBINE_HIDPI_IMAGES = YES; @@ -4528,7 +4530,7 @@ ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = YES; - CODE_SIGN_ENTITLEMENTS = Shared/Yattee.entitlements; + CODE_SIGN_ENTITLEMENTS = "macOS/Yattee (macOS).entitlements"; CODE_SIGN_IDENTITY = "Apple Development"; "CODE_SIGN_IDENTITY[sdk=macosx*]" = "3rd Party Mac Developer Application"; CODE_SIGN_STYLE = Manual; diff --git a/macOS/Yattee (macOS).entitlements b/macOS/Yattee (macOS).entitlements new file mode 100644 index 00000000..04a74f36 --- /dev/null +++ b/macOS/Yattee (macOS).entitlements @@ -0,0 +1,23 @@ + + + + + com.apple.security.app-sandbox + + com.apple.security.files.user-selected.read-only + + com.apple.security.files.bookmarks.app-scope + + com.apple.security.network.client + + com.apple.security.temporary-exception.mach-lookup.global-name + + $(PRODUCT_BUNDLE_IDENTIFIER)-spki + $(PRODUCT_BUNDLE_IDENTIFIER)-spks + + com.apple.security.cs.allow-unsigned-executable-memory + + com.apple.security.cs.disable-library-validation + + +