absolutePathForApplication(withBundleIdentifier:)
Returns the absolute file system path of an app bundle.
Declaration
func absolutePathForApplication(withBundleIdentifier bundleIdentifier: String) -> String?Parameters
- bundleIdentifier:
The bundle identifier string. This value corresponds to the value in the
CFBundleIdentifierkey of the app’sInfo.plistfile. For example, the bundle identifier of the TextEdit app iscom.apple.TextEdit.
Return Value
The file system path to the app bundle identified by bundleIdentifier, or nil if the bundle cannot be found.
Discussion
It is safe to call this method from any thread of your app.
See Also
Methods
open(_:options:configuration:)open(_:withApplicationAt:options:configuration:)openFile(_:)openFile(_:withApplication:)openFile(_:withApplication:andDeactivate:)openFile(_:from:at:in:)launchApplication(_:)launchApplication(_:showIcon:autolaunch:)launchApplication(at:options:configuration:)performFileOperation(_:source:destination:files:tag:)fullPath(forApplication:)launchApplication(withBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifier:)open(_:withAppBundleIdentifier:options:additionalEventParamDescriptor:launchIdentifiers:)mountedRemovableMedia()mountedLocalVolumePaths()