Apple provides a Background Assets Framework that allows asset files to be stored on the App Store and downloaded on demand by the user. The docs include instructions for testing assets locally using a “localhost” server.
I’ve created the Certificate Authority as described in the instructions and installed it on my test iPhone. The local server is running on my Mac:
xcrun ba-serve –host localhost G100.aar
Loading asset packs…
Loading the asset pack at “G100.aar”…
Choose an identity in the panel to continue.
Listening on port 53114…
I’ve entered the URL Override in Settings > Developer > Development Overrides on my test iPhone:
However, whenever my app tries to access the asset pack, Xcode reports this error:
The asset pack with the ID “G100” couldn’t be looked up: Could not connect to the server.
Any idea what’s causing this error?
Note: a similar problem was reported here:
An error occurred when testing my background assets packs locally
An error occurred when downloading a background assets packs hosted by Apple.
But that error seemed to be related to a problem in older iOS versions. That problem has apparently been corrected in iOS 26 (search iOS 26 release notes for “443”).