urlForApplication(withBundleIdentifier:)
Returns the URL to the default app with the specified bundle identifier.
Declaration
func urlForApplication(withBundleIdentifier bundleIdentifier: String) -> URL?Parameters
- bundleIdentifier:
The bundle identifier for the app.
Return Value
The URL of the app, or nil if no app has the bundle identifier.
Discussion
This method uses various heuristics in case multiple apps have the same bundle ID.
You can safely call this method from any thread of your app.
See Also
Requesting Information
urlForApplication(toOpen:)urlForApplication(toOpen:)urlsForApplications(toOpen:)urlsForApplications(toOpen:)urlsForApplications(withBundleIdentifier:)getFileSystemInfo(forPath:isRemovable:isWritable:isUnmountable:description:type:)isFilePackage(atPath:)frontmostApplicationrunningApplicationsmenuBarOwningApplicationgetInfoForFile(_:application:type:)