How can I look up the bundle seed id of an iOS app at runtime?

Asked on 2024-07-30

1 search

To look up the bundle seed ID of an iOS app at runtime, you can use the mdutil tool as part of your debugging process. Here’s a brief overview of how you can do this:

  1. Select the App's Target: In Xcode, select your app's target.
  2. Build the App: Go to the Product menu and select Build.
  3. Switch to Extension Target: If you are working with an extension, switch to the extension target.
  4. Attach to Process: From the Debug menu, select Attach to Process.
  5. Run the Utility Command: Open the Terminal app and run the mdutil tool. This tool allows you to simulate requests to your bundle ID for debugging purposes.

By following these steps, you can simulate requests to your bundle ID and debug your app effectively. For more detailed information, you can refer to the session Support semantic search with Core Spotlight at the 06:06 mark.