Unable to upload app with iOS 16 background asset download extension to Testflight - invalid info.plist

I'm experimenting/testing the new background download extension. The documentation for it says that the applicationDidInstall() and applicationDidUpdate() methods are only called if the app is installed from the App Store or from Testflight (I tried installing via Apple Configurator 2 but they are not called then).

Hence in order to check these out I have to first upload the app to Testflight, but there's an error about the info.plist - however the info.plist is created/populated using Xcode's target template for the extension, so if Xcode itself is incorrectly creating the info.plist how is one supposed to know what's wrong with it and how to fix it?

This is the content of the info.plist that was generated:

<key>EXAppExtensionAttributes</key>

<dict>

	<key>EXExtensionPointIdentifier</key>

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

	<key>EXPrincipalClass</key>

	<string>$(PRODUCT_MODULE_NAME).BackgroundDownloadHandler</string>

</dict>

And the error uploading to Testflight

P.S. There's no apparent relevant tag for this extension

I'm encountering the same error message with an app intents extension. As a workaround, I've disabled the extension and added its code to my main app target. I'm not sure if this is also possible in your case.

Unable to upload app with iOS 16 background asset download extension to Testflight - invalid info.plist
 
 
Q