Invalid bundle structure: BackgroundAsset upload to TestFlight

**Hi everyone **

We try to add BackgroundAssetExtension to our project, in local testing work fine, but when we try upload app to TestFlight we get some errors that we don't know how to fix.

App

  • Supported Destinations: iPhone, iPad, Mac(Designed for iPad)
  • Minimum Deployments: iOS 12

BackgroundAssetExtension

  • Minimum Deployments: iOS 16.4

Error when try to upload to TestFlight:

"<IDEDistributionIssue: severity(error), error(Error Domain=ContentDelivery Code=90171 \"Asset validation failed\" UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription=Asset validation failed, NSLocalizedRecoverySuggestion=Invalid bundle structure. The \U201cDemo.app/decompressed_data_5.bin\U201d binary file is not permitted. Your app cannot contain standalone executables or libraries, other than a valid CFBundleExecutable of supported bundles. For details, visit: https://developer.apple.com/documentation/bundleresources/placing_content_in_a_bundle (ID: 3dfe207a-b4e5-43db-9464-fcf59a730545)})>", 

"<IDEDistributionIssue: severity(error), error(Error Domain=ContentDelivery Code=90924 \"Asset validation failed\" UserInfo={IDEDistributionIssueSeverity=3, NSLocalizedDescription=Asset validation failed, NSLocalizedRecoverySuggestion=Invalid Info.plist value. (ID: 073b5957-2e5b-4a7b-a4ae-7735b30a2d05)})>"

when we checked archive (Show package contents) that many files like

compressed_data_1.bin
compressed_data_2.bin
compressed_data_3.bin
compressed_data_4.bin
compressed_data_5.bin
compressed_data_6.bin
decompressed_data_1.bin
decompressed_data_2.bin
decompressed_data_3.bin
decompressed_data_4.bin
decompressed_data_5.bin
decompressed_data_6.bin

We added to main target in Build Phase -> Embed ExtensionKit Extensions

Info.plist

<key>BAEssentialMaxInstallSize</key>
	<integer>3250188</integer>
	<key>BAInitialDownloadRestrictions</key>
	<dict>
		<key>BADownloadAllowance</key>
		<integer>3250188</integer>
		<key>BADownloadDomainAllowList</key>
		<array>
			<string>*</string>
			<string>*</string>
		</array>
		<key>BAEssentialDownloadAllowance</key>
		<integer>3250188</integer>
	</dict>
	<key>BAManifestURL</key>
	<string>https://*/itemsmeta</string>
	<key>BAMaxInstallSize</key>
	<integer>3250188</integer>

We will be appreciate for any suggestions :) If need some additional information let me know 🙏

Sorry, we solved the problem, we didn't expect that

Problem connect with difference between minimum deployments version. main target have iOS 12 and extension have iOS 16.4.

Do u have some suggestion how can we use BackgroundAsset with min deployment target as in main target (iOS 12) ?

Invalid bundle structure: BackgroundAsset upload to TestFlight
 
 
Q