I did put a sqlite file in the copyfile build step of my IOS app and I want to copy it to the app document special folder. The sqlite file is located in the same folder than the application source.
Here is my code in the open event of my application:
[code] dim fichier As text
Dim dbFile As FolderItem
fichier = “v.sqlite”
dbFile = SpecialFolder.GetResource(fichier)
If Not SpecialFolder.Documents.Child(fichier).Exists Then
Dim dest As FolderItem = SpecialFolder.Documents.Child(fichier)
dbFile.CopyTo(dest)
End If
[/code]
The line dbFile = SpecialFolder.GetResource(fichier)
cause an Exception As xojo.core.InvalidArgumentException, reason v.sqlite not found.
I just don’t understand…
OSX 10.10.3
Xojo 2015 R2.1