xcrun: error: active developer path ("/Applications/Xcode-beta.app/Contents/Developer") does not exist
Use sudo xcode-select --switch path/to/Xcode.app
to specify the Xcode that you wish to use for command line developer tools, or use xcode-select --install
to install the standalone command line developer tools.
See man xcode-select
for more details.
save data
If you have access to your image data or text data then you could present the user with a UIActivityViewController where they can then save it to Files, or share it with any of the other available options:
let activityViewController = UIActivityViewController(activityItems: