On macOS Tahoe26.0, iOS 26.0 (23A5287g), Xcode 26.0 beta 3 (17A5276g) 1、Follow this tutorial Downloading asset packs hosted by Apple When i download a background asset packs hosted by Apple, Xcode callback "Download failed: The helper received an invalid server response with the status code “400”." Before downloading, I uploaded the three aar files to the Apple server using the Transporter app. Three Manifest.json content is: {"assetPackID":"bdassets2","downloadPolicy":{"onDemand":{}},"fileSelectors":[{"file":"1.jpg"},{"file":"2.pag"},{"file":"3.mp4"}],"platforms":["iOS"]} and {"assetPackID":"bdassets1","downloadPolicy":{"prefetch":{"installationEventTypes":["firstInstallation","subsequentUpdate"]}},"fileSelectors":[{"file":"1.jpg"},{"file":"2.pag"},{"file":"3.mp4"},{"directory":"a1"}],"platforms":["iOS"]} and {"assetPackID":"bdassets0","downloadPolicy":{"essential":{"installationEventTypes":["firstInstallation","subsequentUpdate"]}},"fileSelectors":[{"file":"1.jpg"},{"file":"2.pag"},{"file":"3.mp4"},{"directory":"a1"}],"platforms":["iOS"]}
The same error was reported when the three aar files were obtained. I obtained it using the following code: do { let assetPack = try await AssetPackManager.shared.assetPack(withID: "bdassets2") try await AssetPackManager.shared.ensureLocalAvailability(of: assetPack) } catch { print("Download failed:", error) }
2、Follow this tutorial Testing your asset packs locally I use this command line to start the test server:xcrun ba-serve --host 172.17.9.62 bdassets2.aar, The content displayed on the terminal is: Loading asset packs… Loading the asset pack at “bdassets2.aar”… Choose an identity in the panel to continue. Listening on port 56061…
When running the project, Xcode reports an error:Download failed: Could not connect to the server. I use iPhone directly visit this website: https://172.17.9.62:56061, on the page display "Hello, world!"
There are too few error messages in both of the above questions. I have no idea what the specific reasons are.I hope someone can offer some guidance. Best Regards.
For the first question, Apple-hosted asset packs are currently available only when an app is installed from TestFlight for internal testers (i.e., testers who are members of your development team in App Store Connect). Later this year, they’ll become available in other situations, such as when an app is installed from Xcode or the App Store. Until such time, the HTTP 400 error that you see is expected. In the meantime, you can continue to use the process that’s described in Testing Your Asset Packs Locally as you develop your app in advance of its release on the App Store.
For the second question, we’ll need some additional logging to investigate the problem further. Could you file a feedback report using Feedback Assistant on the device that shows the error and reply to this thread with the feedback ID? That way, we can diagnose the problem and follow up with you via Feedback Assistant. If you’re unfamiliar with the process, then you can learn more about filing feedback with Feedback Assistant. Thanks!