2 Commits
Author SHA1 Message Date
Gregorio Litenstein 7cbc766230 Update changelog & bump version to 1.1.3. 2018-11-15 10:39:31 -03:00
Gregorio Litenstein 4695232d57 SWDAApplicationInfo: Guard for bundleIdentifier!
Intended to fix odd occurrences of crashes when unwrapping.
2018-11-15 10:34:54 -03:00
3 changed files with 13 additions and 5 deletions
+6 -2
View File
@@ -34,8 +34,8 @@ The user-interface should be pretty self-explanatory; but, there are some things
- Gears designed by Freepik (http://www.freepik.com/free-vector/gray-background-of-gear_956712.htm)
## Current Version
- Version: 1.1.2
- Date: 2018-10-07
- Version: 1.1.3
- Date: 2018-11-15
## Known Issues
-
@@ -45,6 +45,10 @@ The user-interface should be pretty self-explanatory; but, there are some things
# Release Notes
## [1.1.3] - 2018-11-15
+ ### Fixed
+ Bug causing crash on related to force-unwrapping bundleIdentifier.
## [1.1.2] - 2018-10-07
+ ### Changed
+ Migrated to Swift 4.2
+2 -2
View File
@@ -15,9 +15,9 @@
<key>CFBundlePackageType</key>
<string>BNDL</string>
<key>CFBundleShortVersionString</key>
<string>1.1.2</string>
<string>1.1.3</string>
<key>CFBundleVersion</key>
<string>224</string>
<string>225</string>
<key>NSHumanReadableCopyright</key>
<string>Copyright © 2017 Gregorio Litenstein Goldzweig. All rights reserved.</string>
<key>NSMainNibFile</key>
@@ -88,7 +88,11 @@ class SWDAApplicationInfo: NSObject {
let appURL = NSWorkspace.shared.urlForApplication(withBundleIdentifier: bundleID!)
guard appURL != nil else { return nil }
if let bundle = Bundle(url: appURL!) {
self.appBundleID = bundle.bundleIdentifier!
guard bundle.bundleIdentifier != nil else {
NSLog(LSWrappers.LSErrors.invalidBundle.print(argument: (app: inParam, content:"")))
return nil;
}
self.appBundleID = bundle.bundleIdentifier!
let name = (bundle.object(forInfoDictionaryKey: "CFBundleName") as? String)
let displayName = (bundle.object(forInfoDictionaryKey: "CFBundleDisplayName") as? String)
var tempName: String?