Fix Error 0x87D13BA2 deploying a macOS LOB app in Intune

Learn how to resolve the error 0x87D13BA2 when you deploy a macOS line-of-business (LOB) app in Microsoft Intune.

Fix Intune MacOS LOB Apps Error 0x87D13BA2

In this article, I will show you how to resolve error 0x87D13BA2 that occurs when deploying a macOS LOB app in Microsoft Intune. You encounter the error message: One or more apps contain invalid bundleIDs (0x87D13BA2) even though the LOB app installation is successful on Mac devices.

Intune supports adding and deploying macOS line-of-business (LOB) apps to enrolled Mac devices. However, sometimes the deployment doesn’t go as expected, and you encounter weird errors.

In most cases, macOS LOB apps deployed through Intune fail to install due to incorrectly uploaded application bundle IDs and versions or when the devices fail to download the content. Fortunately, for the macOS LOB 0x87D13BA2 app error, we have an error code and an error description, making troubleshooting easier.

Also ReadHow to Resolve Intune Enrollment Error 80180014

Why do you encounter macOS LOB app Error 0x87D13BA2 in Intune?

The error 0x87D13BA2 occurs when deploying a macOS LOB app in Intune due to the following reasons:

  • Multiple applications are included in a macOS LOB app package
  • The installation status of all individual applications included in the package is not reported back to Intune
  • One or more apps contain invalid bundleIDs.

Editing the macOS LOB app information and removing the invalid apps resolves the error 0x87D13BA2.

See AlsoFix Intune Win32 App Deployment Error 0x87D1041C

Symptoms

Let me now explain what happens when you encounter the macOS LOB app error 0x87D13BA2 in Intune with an example.

While deploying new Microsoft Teams for macOS with Intune, I encountered the error 0x87D13BA2. Surprisingly, the Teams app was successfully installed on a Mac. However, the Intune portal showed the app failed to install with an error code of 0x87D13BA2.

Intune macOS LOB app deployment failed
Intune macOS LOB app deployment failed

Reviewing the device installation status for the failed app showed a complete error. One or more apps contain invalid bundleIDs (0x87D13BA2).

One or more apps contain invalid bundleIDs (0x87D13BA2)
One or more apps contain invalid bundleIDs (0x87D13BA2)

Also ReadFix Intune Win32 App Install Error 0x80070002

Fix Error 0x87D13BA2 deploying a macOS LOB app in Intune

Now that you understand the reasons why you encounter error 0x87D13BA2 when deploying a macOS LOB app in Intune, let me show you the steps to resolve this.

Use the following steps to resolve this problem and enable the macOS LOB app to correctly report its status:

Step 1: On a macOS device that has the LOB app installed through Intune, open Terminal and run the following command to output a list of installed apps to the current directory:

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

After running the above command, open the InstalledApps.txt file in a text editor. You may also copy InstalledApps.txt to a different folder using the cp command and open the file with your favorite text editor.

Fix Intune MacOS LOB Apps Error 0x87D13BA2
Fix Intune MacOS LOB Apps Error 0x87D13BA2

Step 2: Sign in to the Intune admin center. Go to the affected app in Intune by selecting Properties > App Information > Edit.

https://e0f888bf5a8185929576957e0f24c0df.safeframe.googlesyndication.com/safeframe/1-0-40/html/container.html
Edit macOS LOB app information
Edit macOS LOB app information

Step 3: Compare the list of included apps in Intune with the apps listed in the InstalledApps.txt file, and remove any apps that are not showing in the text file.

Additionally, you must also compare the App bundle ID and App version in Intune with the information present in InstalledApps.txt. If you notice any differences, make sure you correct the information in the app information.

https://e0f888bf5a8185929576957e0f24c0df.safeframe.googlesyndication.com/safeframe/1-0-40/html/container.html
Fix Intune MacOS LOB Apps Error 0x87D13BA2
Fix Intune MacOS LOB Apps Error 0x87D13BA2

Here is an example of an invalid app ID that I was talking about. In the Intune admin center, the macOS LOB app information includes the app bundle ID with the value com.microsoft.MSTeamsAudioDevice whereas this entry is not at all present in the installedapps.txt.

Error 0x87D13BA2 deploying a macOS LOB app in Intune
Error 0x87D13BA2 deploying a macOS LOB app in Intune

In my case, I removed the invalid bundle ID’s and entered the correct app bundle and app version for the macOS LOB app.

  • App bundle ID (CFBundleIdentifier): com.microsoft.teams2
  • App version (CFBundleShortVersionString): 24046.2812.2722.8193

Note: You may add more than one bundle IDs for the macOS LOB app.

https://e0f888bf5a8185929576957e0f24c0df.safeframe.googlesyndication.com/safeframe/1-0-40/html/container.html
Configure Detection Rules for Teams macOS App
Correct the app bundle and app version for the macOS LOB app

Step 4: After you have completed the above steps, review and save the application. Now sync the macOS device with Intune to retrieve the latest app installation status.

Refresh the Intune admin center, and now we see the macOS LOB app showing as ‘Installed.’

Monitor New Teams for Mac deployment progress
Monitor New Teams for Mac deployment progress

I hope the steps covered in this post helped you resolve the error 0x87D13BA2 for macOS LOB app deployment in Intune. If you have any questions, please let me know in the comments section.

https://e0f888bf5a8185929576957e0f24c0df.safeframe.googlesyndication.com/safeframe/1-0-40/html/container.html

Sign Up For Newsletter

Join our newsletter to stay updated and receive all the top articles published on the site! Get the latest articles delivered straight to your inbox.

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *