I have tried this with Xcode 15.3, Sonoma 14.4 and iOS 17.4, and still having the file permission denied. The file is under AppData/Documents. Did I miss any extra step?
I even tried without making changes to the container, just downloading and then replacing it right away, it still shows the error.