Because of MAS requirements, I need to copy a helper app from my app bundle to the Application Support folder, before my app can use it.
It works in debug mode, but not when I build the app.
What I did is to add a Build Step / Copy Files / App Parent to my Xojo project.
When I build the app, it's then part of the application package, it sits next to the app in Contents/MacOS.
I want to copy it to the Application Support folder during the app's first run.
This is my code:
dim f as FolderItem = SpecialFolder.ApplicationData
f = f.child("MyFolder")
dim g as FolderItem
g = GetFolderItem("")
g = g.Child("MyFile")
The folder is created, but the file doesn't copy to the folder
It doesn't seem to find the source file when in the bundle
I've also tried this: g = g.Child("MyFile/Contents/MacOS")