Hello. I have an app that uses external mp3 and png files for its content. I have set the defaultFolder to specialFolderPath("resources"). Everything is fine in IDE, macOS executable, and iOS simulator. On an actual iOS device, however, none of the graphics or sounds appear. I get some startup data from a text file with
Code: Select all
put URL "File:score.txt" into gScore
and that is loading because I put in an
to test it. I have looked inside the "package" and the files are there in their relative folders.
To load the graphics I typically use something along the lines of
Code: Select all
set the filename of image ("image" & y) to the defaultFolder & "/chapter" & y & "/images/" & fileNameOfTheImage
and I'm using similar path constructions for the audio files. (I have tried it with and without "the defaultFolder" in front.) I'm guessing iOS is pickier about how paths are constructed since only my simple one seems to work, but I haven't stumbled onto the magic syntax.
Or maybe I'm missing the subtleties of specialFolderPath.
Any thoughts?
Thanks! --Dirk