mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
Fix Info.plist crash on Mac (#72)
* #71 Use custom template for Info.plist * Add changelog
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user