Enable Hardened Runtime

This commit is contained in:
Hariharan Mudaliar 2026-03-06 16:00:28 +05:30
commit 82b092c545
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
6 changed files with 33 additions and 112 deletions

View file

@ -32,10 +32,7 @@ final class MediaChecker: Sendable {
func checkDeprecationStatus() async throws -> Bool {
guard let scriptURL = Bundle.main.url(forResource: "mediaremote-adapter", withExtension: "pl"),
let nowPlayingTestClientPath = Bundle.main.url(forResource: "MediaRemoteAdapterTestClient", withExtension: nil)?.path,
//let frameworkPath = Bundle.main.privateFrameworksPath?.appending("/MediaRemoteAdapter.framework")
//let frameworkPath = Optional("/System/Library/PrivateFrameworks/MediaRemoteAdapter.framework")
let frameworkPath =
let frameworkPath =
Bundle.main.resourceURL?
.appendingPathComponent("MediaRemoteAdapter.framework")
.path
@ -43,6 +40,11 @@ final class MediaChecker: Sendable {
throw MediaCheckerError.missingResources
}
let nowPlayingTestClientPath =
Bundle.main.bundleURL
.appendingPathComponent("Contents/Helpers/MediaRemoteAdapterTestClient")
.path
let process = Process()
process.executableURL = URL(fileURLWithPath: "/usr/bin/perl")
process.arguments = [scriptURL.path, frameworkPath, nowPlayingTestClientPath, "test"]