ARTICLE AD BOX
i am working on a document based macOs app, and planned to release outside the app store. I wanted to save the user files inside the users Document folder and thus I have this default code :-
static var projectsFolderURL: URL { let fileManager = FileManager.default let documentsURL = fileManager.urls(for: .documentDirectory, in: .userDomainMask).first! let folderURL = documentsURL.appendingPathComponent(projectsFolderName) ensureFolderExists(at: folderURL) return folderURL }Everything was all set, I am ready to distribute the app, but before that I tried installing the .dmg just to make sure everything is working fine, and I am experiencing an issue, all the files are being saved in the App Container like this '/Users/lisa/Library/Containers/myproj.companyname/Data/Documents/LisaApp Projects'. This is technically a bad behaviour as I have seen all document based app generally saves the files in the User Documents folder.
What exactly is happening here? After some research I got to know that it maybe happening because I have the "App Sandbox" turned on, but I am feeling scared removing it, I was asking for some permissions using it, like microphone, Incoming connection, outgoing connection etc. for sparkle.
What should I do now?
