Fix Info.plist crash on Mac (#72)

* #71 Use custom template for Info.plist

* Add changelog
This commit is contained in:
ismailgulek
2022-06-06 15:02:16 +03:00
committed by GitHub
parent 2256d49b35
commit 0089cb9835
4 changed files with 112 additions and 6 deletions
+1 -5
View File
@@ -39,11 +39,7 @@ private struct PlistDocument {
let data: [String: Any]
init(path: String) {
guard let url = BundleToken.bundle.url(forResource: path, withExtension: nil),
let data = NSDictionary(contentsOf: url) as? [String: Any] else {
fatalError("Unable to load PLIST at path: \(path)")
}
self.data = data
self.data = BundleToken.bundle.infoDictionary ?? [:]
}
subscript<T>(key: String) -> T {