Background assed download error: "BAApplicationInfo is missing an extensionIdentity"

I've added a background asset extension and am trying to invoke it using this:

xcrun backgroundassets-debug --app-bundle-id com.myCompany.myApp  --device-id 00008120-000225060C9B401E --simulate --app-update 

When I run that command I see this in the phone's log:

Unable to observe extension for (com.cequint.myapp), the BAApplicationInfo is missing an extensionIdentity.

So how should an extension identify be added?

The extension's info.plist is as created by the Xcode template:

<key>EXAppExtensionAttributes</key>

<dict>

	<key>EXExtensionPointIdentifier</key>

	<string>com.apple.background-asset-downloader-extension</string>

</dict>

And I've added the following to the app's info.plist:

> <dict>

	<key>BGTaskSchedulerPermittedIdentifiers</key>

	<array>

		<string>kBackgroundTaskIdIdentifier_RNScheduleAppRunEvent</string>

	</array>

  <key>BAMaxInstallSize</key>

  <integer>3221225472</integer>

  <key>BAInitialDownloadRestrictions</key>

  <dict>

         <key>BADownloadDomainAllowList</key>

         <array>

                <string>*.drive.google.com</string>

         </array>

         <key>BADownloadAllowance</key>

         <integer>2147483648</integer>

  </dict>

<key>BAManifestURL</key>

<string>https://drive.google.com/file/d/1doJtzxBKCoVHEF80sndK6VskCrkD9H9r/view?usp=sharing</string>

What else needs doing to provide the extension identifier the OS is saying is missing?

(Using Xcode 14.1 and iOS 16.2)

I got the same problem, does anyone know how to solve it?

You'll want to make sure that your extension's bundle identifier is prefixed with the app's bundle identifier.

Example:

App Bundle ID:

com.myCompany.myApp

Ext Bundle ID:

com.myCompany.myApp.BackgroundDownloaderExtension

The suffix can be named anything you want, as long as it is prefixed with the app's bundle identifier.

Background assed download error: "BAApplicationInfo is missing an extensionIdentity"
 
 
Q