I have isolated the issue with the permission error. If I access pack contents either with contents(at:searchingInAssetPackWithID:options:) and any option or with the corresponding file descriptor method, then call ensureLocalAvailability(of: pack, requireLatestVersion: true), the next call to get the contents fails with the permission error if a new pack version was actually downloaded. If I update the pack during app launch, before accessing its contents, it works. That is easy to work around when updating manually but my question still stands: can an automatic update happen while the app is running? That could trigger the issue.
Topic:
Developer Tools & Services
SubTopic:
General
Tags: