Refactor to eliminate hardcoded identifiers
Read package identifier and app group ID from Info.plist at runtime via AppConfiguration. This enables SFM.System to use TeamID-prefixed app group format required by macOS Sequoia, fixing the privacy prompt when accessing app group data.
This commit is contained in:
@@ -115,7 +115,7 @@ public struct TypedProfile: Transferable, Codable {
|
||||
}
|
||||
|
||||
public extension UTType {
|
||||
static var profile: UTType { .init(exportedAs: "io.nekohasekai.sfavt.profile") }
|
||||
static var profile: UTType { .init(exportedAs: AppConfiguration.profileUTType) }
|
||||
}
|
||||
|
||||
#if !os(tvOS)
|
||||
|
||||
Reference in New Issue
Block a user