init(bundleIdentifier:)
Creates a representation of an app using its bundle identifier.
Declaration
init(bundleIdentifier: String)Parameters
- bundleIdentifier:
The bundle identifier of the app.
Discussion
You can get the bundle identifier for an app using the codesign command line utility:
% codesign -v -d /Applications/MyApp.appHowever, it’s typically more secure to specify both the bundle and team identifiers when creating an app representation using init(bundleIdentifier:teamIdentifier:).