I feel I'm missing something really obvious, but how are files copied to simulators in Device Hub now? From my MacOS Finder, there's no share with simulator option and drag and drop is ignored. What am I missing?
Ok, I have an incredibly hacky way to do it, all from the terminal.
Use something like this to work out the ID of the simulator you want to copy a file into:
xcrun simctl list | grep Booted
Now work out the Files app group container with:
xcrun simctl get_app_container <simulator ID> com.apple.DocumentsApp groups
Make a note of the path for group.com.apple.FileProvider.LocalStorage.
Finally, use rsync to copy the file to the local storage location (cp doesn't work for some reason 🤷♂️):
rsync /path/to/my/file.dat "<LocalStorage path>/File Provider Storage/myfile.dat"
If you use cp or Finder, the copy fails and leaves a zero byte file. If you're just copying text, you can actually then open that file and just paste the text in.