How to get the bundle identifier
Find the Bundle Identifier for your iOS application.
Grovs needs it to configure the SDK and Universal Links.
1
Select your app target
Click the project file at the top of the Project Navigator, then select your app target.
2
Open the General tab
Open the General tab.
3
Copy the bundle identifier
Copy the Bundle Identifier field in the Identity section.
1
Open Info.plist
Open Info.plist from the Project Navigator.
2
Copy CFBundleIdentifier
Copy the value of the CFBundleIdentifier key.
1
Read Bundle.main.bundleIdentifier
Print it at runtime. It returns an optional String?:
Swift
let bundleIdentifier = Bundle.main.bundleIdentifier
print("Bundle Identifier: \(String(describing: bundleIdentifier))")Bundle Identifiers usually use reverse domain notation, such as com.example.myapp.
Was this page helpful?