Status: Implemented
Two utility tools for locating built app bundles and extracting bundle identifiers. Used as building blocks by higher-level tools like build_and_run.
Find the .app bundle path for a Bazel target in bazel-bin.
| Parameter | Type | Required | Description |
|---|---|---|---|
target |
string | yes | Bazel target label (e.g. //app:app) |
Returns the absolute path to the .app bundle. The target must have been built first.
Read the CFBundleIdentifier from an app's Info.plist.
| Parameter | Type | Required | Description |
|---|---|---|---|
appPath |
string | yes | Path to the .app bundle or a Bazel target label |
Returns the bundle identifier string (e.g. com.example.MyApp).
xcodebazelmcp app-path //app:app
xcodebazelmcp bundle-id /path/to/MyApp.app
xcodebazelmcp bundle-id //app:appget_app_pathusesbazel cquery '<target>' --output=filesto discover output paths, then scans for.appbundles. Falls back to globbingbazel-bin/using the target's package path if cquery fails.get_bundle_idaccepts either an absolute.apppath or a Bazel target label (in which case it resolves the app path first). ReadsInfo.plistinside the bundle usingplutil -convert jsonand extracts theCFBundleIdentifiervalue.- Both return an error if the target hasn't been built yet.