Intune and Windows Autopilot

Intune error 0x87D13BA2: macOS LOB app contains invalid bundleIDs

Intune error 0x87D13BA2 shows "One or more apps contain invalid bundleIDs" for a macOS line-of-business app, even when it installed. Microsoft's fix, in steps.

By EpiFive Editorial TeamSources checked How we check our guides

What the error means

Error 0x87D13BA2 appears in the Microsoft Intune admin center when you publish a macOS line-of-business (LOB) app. If you select the app and open the Device install status, the status shows Failed and the status details read "One or more apps contain invalid bundleIDs. (0x87D13BA2)".

A bundle ID is the identifier that macOS uses for an installed application. Intune keeps a list of the applications included in the package, and it expects the Mac to report the installation state of each of them. When that reporting does not line up, Intune shows this error against the app.

An unusual point in Microsoft's description is that the problem can occur even if the app is successfully installed on the device. So the Failed status can be a reporting problem rather than a real install failure. Check on a test Mac whether the application is present before you assume that the deployment itself failed.

Common causes

Microsoft documents that the problem occurs under these conditions:

  • Multiple applications are included in a macOS app package.
  • The installation status of all individual applications included in the package is not reported back to Intune.

Microsoft adds that any app that has multiple components, such as Microsoft Teams, can generate this error message. In practice this means a package built from an installer that places more than one application on the Mac is the typical trigger, and the fix is to make the list in Intune match what the Mac actually reports.

How to fix it

1. Export the list of installed apps from the Mac

On a macOS device that has the app installed through Intune, open Terminal and run the following command. It writes the list of installed apps to a file in the current directory:

sudo /usr/libexec/mdmclient QueryInstalledApps > InstalledApps.txt

Open the InstalledApps.txt file in a text editor so that you can compare it with what Intune lists.

2. Compare the Intune app list with the file

In the Microsoft Intune admin center, go to the affected app and select Properties, then App information, then Edit. Compare the list of included apps in Intune with the apps listed in InstalledApps.txt. Microsoft says to remove any apps that do not show in the text file.

3. Save the app and sync the device

Review and save the application. Then sync the device so that it retrieves the latest app installation status. After the sync, check the Device install status again. As a general step, allow some time for the device to check in before judging the result, and use the sync action on a test device first.

If nothing works

Confirm that you edited the correct app and that the removed entries really were missing from InstalledApps.txt. If the status stays Failed and the application is also missing on the Mac, treat it as a real installation problem and look at the device and app deployment logs; that goes beyond what Microsoft's article covers and is a general step. For a support case, include the exact status text, the 0x87D13BA2 code and the InstalledApps.txt output.

What we checked

One Microsoft Learn article was read on 2026-11-22: Error 0x87D13BA2 when you deploy a macOS LOB app. It gives the error text, the symptom in the Device install status, the two conditions that cause it, and the steps that use the mdmclient command, the App information edit page and a device sync. The error was not reproduced for this page. The comment about checking whether the app is present and the advice under "If nothing works" are general steps and not from the article.

Last checked: 2026-11-22.

Official sources

Questions people ask

What does 0x87D13BA2 mean in Intune?

It is the code behind the status detail "One or more apps contain invalid bundleIDs" for a macOS line-of-business app. Microsoft says it happens when a package contains several applications and the install status of each one is not reported back to Intune.

The app is installed on the Mac but Intune says Failed. Is that normal for this error?

Yes. Microsoft states that the problem can occur even if the app is successfully installed on the device.

Which apps are affected?

Microsoft says any app that has multiple components, such as Microsoft Teams, can generate this error message.

Not your code?

Search the error code library, or report a code we don't cover. Spotted something out of date on this page? Report a correction.