@Vincent V My application converts video files and saves them in the Application Support folder (SpecialFolder.ApplicationData.child (“My App”) ) as required by an Apple MAS reviewer, who doesn't let me use the 'Movies' folder. The app works as intended, it converts a video and then opens the App Support folder with the converted file for the user.
I hate to tell you this, but I had an application rejected this year for doing just that. I argued that it's been doing this for years, but the App review team don't care. They suggested the following (which I told them is BS and destined to fail).
- When you first export, ask the user where they want to export too.
- Store this as a Security-Scoped Bodgemark in your application.
- Request access to this location from the bodgemark.
- Write the files to this location.
- Release access to the bodgemark.
For various reasons the above is a joke with Apple's security model, helper apps can't access that location (unless you do some funky massaging). You're only allowed a maximum of 90 seconds for your file operations, exceed that and you run the risk of corrupting your applications security resulting in your application being locked out of everything. On top of that Security-Scoped Bodgemarks fail, and when they do you have no idea or any means to report to the user where they were pointed too.
So you must do your work in a location such as the Application Data folder, now as to why you're locked out once you've wrapped with App Wrapper (App Wrapper applies the Apple security protocols to your application, so it's not really App Wrapper that's preventing you, it's Apple), it suggests to me that something is wrong with how you specify the location for the temporary folder. Let me dig out the code I use in my own applications, as that works (for me anyway).
Once your work is complete, you request access to the original location, if it's granted, you then Move the file there. Do not copy, it can take too long, and release access. Moving is instantaneous.
MAS Apple do not like developers
I fixed it for you.